TPixmap: Fields Methods Functions  


Fields

pixelsA byte pointer to the pixmap's pixels
widthThe width, in pixels, of the pixmap
heightThe height, in pixels, of the pixmap
pitchThe pitch, in bytes, of the pixmap
formatThe pixel format of the pixmap
capacityThe capacity, in bytes, of the pixmap, or -1 for a static pixmap

Methods

PixelPtrGet memory address of a pixel
WindowCreate a virtual window into a pixmap
CopyDuplicate a pixmap
PastePaste a pixmap
ConvertConvert a pixmap
ReadPixelRead a pixel from a pixmap
WritePixelWrite a pixel to a pixmap
ClearPixelsClear a pixmap

Functions

CreateCreate a pixmap
CreateStaticCreate a static pixmap

Field reference

Field pixels:Byte Ptr
DescriptionA byte pointer to the pixmap's pixels

Field width
DescriptionThe width, in pixels, of the pixmap

Field height
DescriptionThe height, in pixels, of the pixmap

Field pitch
DescriptionThe pitch, in bytes, of the pixmap

Field format
DescriptionThe pixel format of the pixmap

Field capacity
DescriptionThe capacity, in bytes, of the pixmap, or -1 for a static pixmap

Method reference

Method PixelPtr:Byte Ptr( x,y )
ReturnsA byte pointer to the pixel at coordinates x, y
DescriptionGet memory address of a pixel

Method Window:TPixmap( x,y,width,height )
ReturnsA static pixmap that references the specified rectangle.
DescriptionCreate a virtual window into a pixmap

Method Copy:TPixmap()
ReturnsA new TPixmap object.
DescriptionDuplicate a pixmap

Method Paste( source:TPixmap,x,y )
DescriptionPaste a pixmap

Method Convert:TPixmap( format )
ReturnsA new TPixmap object in the specified format
DescriptionConvert a pixmap

Method ReadPixel( x,y )
ReturnsThe pixel at the specified coordinates packed into an integer
DescriptionRead a pixel from a pixmap

Method WritePixel( x,y,argb )
DescriptionWrite a pixel to a pixmap

Method ClearPixels( argb )
DescriptionClear a pixmap

Function reference

Function Create:TPixmap( width,height,format,align=4 )
ReturnsA new TPixmap object
DescriptionCreate a pixmap

Function CreateStatic:TPixmap( pixels:Byte Ptr,width,height,pitch,format )
ReturnsA new TPixmap object
DescriptionCreate a static pixmap