JCL Help:TJclBitmap32.Pixel

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Specifies the color of the pixel at coordinates X, Y.


Pascal

 public property Pixel [X, Y: Integer]: TColor32;
public property PixelS [X, Y: Integer]: TColor32;


Description

Pixel property sets the value of the pixel in the bitmap. Reading it, will return the color value of the pixel located at specified coordinates. This property does not validate the specified coordinates, so use it only then you are completely sure that you are not trying to read from or write to the outside of the bitmap boundary.
Pixel is declared as default property, you may use it as shown below: Bitmap32[10, 20] := Bitmap32[20, 10]; // copy a pixel from (20,10) to (10,20) positionPixelS is a 'safe' version of the Pixel property. When reading pixels from the outside the bitmap boundary, the value specified by OuterColor is returned. Writing with invalid coordinates will have no effect.


See Also

TJclBitmap32.OuterColor TJclBitmap32.SetPixel TColor32


About

Donator

Alex Denissov


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page