Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64Bit pixel formats do not have a setpixel command #32

Open
CorBer opened this issue Jan 11, 2023 · 0 comments
Open

64Bit pixel formats do not have a setpixel command #32

CorBer opened this issue Jan 11, 2023 · 0 comments

Comments

@CorBer
Copy link

CorBer commented Jan 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant