TColorGridSeries.Bitmap
 
 
 

All Units  All Classes  Properties, Methods and Events  

TColorGridSeries.Bitmap
TColorGridSeries

property Bitmap: TBitmap;

Unit
TeeSurfa

Description
The Bitmap property has two uses:

1) Returns the internal bitmap used to paint the color grid series.
This bitmap is created and filled using color grid series "Y" values.
The bitmap dimensions (width and height) are taken from the X and Z values.

2)
Setting Bitmap defines the Bitmap used as the color source for the color grid.

The ColorGrid series will use this bitmap as the origin of values.
Each pixel color in the bitmap will determine the "Y" value of the color grid series.

The equivalent pseudo-code of setting a bitmap is:

procedure TColorGridSeries.SetBitmap(const Value: TBitmap);
var x : Integer;
z : Integer;
begin
FBitmap.Assign(Value);
BeginUpdate;
Clear;
CenteredPoints:=True;
NumXValues:=FBitmap.Width;
NumZValues:=FBitmap.Height;
for x:=0 to FBitmap.Width-1 do
for z:=0 to FBitmap.Height-1 do
AddXYZ(x,FBitmap.Canvas.Pixels[x,z],z);
EndUpdate;
end;





Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.