JCL Help:TJclByteMap.WriteTo@TJclBitmap32@TConversionKind

From Project JEDI Wiki
Jump to navigationJump to search


Summary

WriteTo fills the destinatio bitmap using the values stored in the byte map.


Pascal

 public procedure WriteTo(Dest: TJclBitmap32; Conversion: TConversionKind); overload;
public procedure WriteTo(Dest: TJclBitmap32; const Palette: TPalette32); overload;


Description

If it is necessary, the destination bitmap is resized to fit the byte map dimensions.
The following table shows how 8-bit data is transformed into 32-bit RGBA color depending on Conversion parameter.
Conversion Action------------ ---------------------------------ctRed Copies bytes into red channel ctGreen Copies bytes into green channel ctBlue Copies bytes into blue channel ctAlpha Copies bytes into alpha channel ctUniformRGB, ctWeightedRGB Copies the same byte value into red, green and blue channels.
WriteTo does not distinguish between ctUniformRGB and ctWeightedRGB conversion types.
The second overloaded version with Palette parameter uses TPalette32 array to map byte values into RGBA colors.


See Also

TJclBitmap32 TConversionType TPalette32


About

Donator

Alex Denissov


Notes

This method alters only the specified color channels, other channels remain intact.


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