imaginglib icon indicating copy to clipboard operation
imaginglib copied to clipboard

64Bit pixel formats do not have a setpixel command

Open CorBer opened this issue 2 years ago • 0 comments

Hi,

Great that this library is still active, but when using it for a 64bit image I found out some simple routines are missing. Please consider adding something like this:

procedure SetPixel64(const Image: TImageData; X, Y: LongInt; const Color: TColor64Rec); var Info: PImageFormatInfo; Data: PByte; begin Info := ImageFormatInfos[Image.Format]; Data := @PByteArray(Image.Bits)[(Y * Image.Width + X) * Info.BytesPerPixel]; ChannelSetDstPixel(Data, Info, Color); end;

cheers Cor

CorBer avatar Jan 11 '23 15:01 CorBer