JCL Help:TJclByteMap.ReadFrom

From Project JEDI Wiki
Jump to navigationJump to search


Summary

The summary for this help topic does not exist, edit this page

Pascal

 public procedure ReadFrom(Source: TJclBitmap32; Conversion: TConversionKind);


Description

ReadFrom allows reading and converting data from TJclBitmap32 objects into the byte map.
First, the byte map is resized to fit the Source bitmap dimensions, then the 32-bit RGBA color is transformed to 8-bits depending on the conversion type:
Conversion Action------------ ---------------------------------------------------ctRed Copies red channel ctGreen Copies green channel ctBlue Copies blue channel ctAlpha Copies alpha channel ctUniformRGB Copies averaged value: (R + G + B) / 3 ctWeightedRGB Copies intensity: R * 0.21 + G * 0.71 + B * 0.08


See Also

TJclBitmap32 TConversionType


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