Skip to content

SdlConvert

Copy a block of pixels of one format to another format.

Definition

Unit: Neslib.Sdl3.Video

procedure SdlConvert(const AWidth, AHeight: Integer; 
  const ASrcFormat: TSdlPixelFormat; const ASrc: Pointer; 
  const ASrcPitch: Integer; const ADstFormat: TSdlPixelFormat; 
  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.

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.

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