Table of Contents
zmap_GetDataPtrDescriptionRetrieve the raw handle to map memory. Files
Function prototypevoid* zmap_GetDataPtr(ZMAP hMap); Arguments
Return valueA null pointer if:
A valid (non-null) pointer otherwise. CommentsPixel orderingPixels are ordered in rows going east-to-west, with rows ordered south to north. To convert from x/y coordinate to memory offset, use the following formula: long offset = (x + nx * y) * PixelMemSize;
…where ny is the map width (in pixels) and PixelMemSize is the size in memory of one pixel (see To convert from memory offsets to pixel coordinates, use the following formulae: long x = (offset/PixelMemSize)%nx; long y = (offset/PixelMemSize)/nx; Use 'zmap_GetPixel' / 'zmap_SetPixel' where possible
It is recommended that, wherever possible, the Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|