Skip to content

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 ASrcProperties: TSdlProperties; const ASrc: Pointer; 
  const ASrcPitch: Integer; const ADstFormat: TSdlPixelFormat; 
  const ADstColorspace: TSdlColorspace; const ADstProperties: TSdlProperties; 
  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.

ASrcProperties: TSdlProperties : Additional source color properties.

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.

ADstProperties: TSdlProperties : Additional destination color properties.

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.

See Also