Declaration
function GetSegment(Row: integer; Col: integer; Width: integer): pointer;
Description
Returns the pointer to a buffer containing a specified image segment.
The type of the result will depend on the bitmap's
PixelFormat:
Pixel Format | Result Type |
ie1g, ie8p, ie8g | PByte |
ie16g | PWord |
ie24RGB | PRGB |
ie32RGB | PRGBA |
ie48RGB | PRGB48 |
ie32f | PSingle |
ieCMYK | PCMYK |
ieCIELab | PCIELab |
For
Location=ieFile or
PixelFormat=ieVirtual you can only use the last line obtained from Scanline[] (consequently this is not thread safe).
Parameter | Description |
Row | Row to retrieve (0 = first row) |
Col | Column to retrieve (0 = first column) |
Width | Number of pixels to retrieve |
See Also
◼ScanLine
◼GetRow
◼FreeRow