You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: