MCPcopy Create free account
hub / github.com/MapServer/MapServer / aggGetRasterBufferCopy

Function aggGetRasterBufferCopy

mapagg.cpp:667–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667int aggGetRasterBufferCopy(imageObj *img, rasterBufferObj *rb) {
668 AGG2Renderer *r = AGG_RENDERER(img);
669 aggInitializeRasterBuffer(rb, img->width, img->height, MS_IMAGEMODE_RGBA);
670 int nBytes = r->m_rendering_buffer.stride()*r->m_rendering_buffer.height();
671 memcpy(rb->data.rgba.pixels,r->buffer, nBytes);
672 return MS_SUCCESS;
673}
674
675
676

Callers

nothing calls this directly

Calls 3

strideMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected