Skip to content

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

@CorBer

Description

@CorBer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions