SdlConvert
Copy a block of pixels of one format and colorspace to another format and colorspace.
Definition
Unit: Neslib.Sdl3.Video
procedure SdlConvert(const AWidth, AHeight: Integer;
const ASrcFormat: TSdlPixelFormat; const ASrcColorspace: TSdlColorspace;
const ASrc: Pointer; const ASrcPitch: Integer; const ADstFormat: TSdlPixelFormat;
const ADstColorspace: TSdlColorspace; const ADst: Pointer;
const ADstPitch: Integer); overload; inline
Parameters
AWidth
: Integer
: The width of the block to copy, in pixels.
AHeight
: Integer
: The height of the block to copy, in pixels.
ASrcFormat
: TSdlPixelFormat
: The pixel format of ASrc.
ASrcColorspace
: TSdlColorspace
: The colorspace of ASrc.
ASrc
: Pointer
: A pointer to the source pixels.
ASrcPitch
: Integer
: The pitch of the source pixels, in bytes.
ADstFormat
: TSdlPixelFormat
: The pixel format of ADst.
ADstColorspace
: TSdlColorspace
: The colorspace of ADst.
ADst
: Pointer
: A pointer to be filled in with new pixel data.
ADstPitch
: Integer
: The pitch of the destination pixels, in bytes.
Exceptions
ESdlError
: Raised on failure.