Unit uBitmap
From Ultibo.org
Return to Unit Reference
Contents
[hide]Description
Ultibo Bitmap Utility unit
Functions to draw or save a standard bitmap image to or from an Ultibo graphics console window.
These functions originally appeared in the Ultibo forum and examples of how to use them can be found there:
- DrawBitmap - https://ultibo.org/forum/viewtopic.php?f=13&t=312
- SaveBitmap - https://ultibo.org/forum/viewtopic.php?f=13&t=313
Constants
None defined
Type definitions
None defined
Public variables
None defined
Function declarations
uBitmap functions
[Expand]
function DrawBitmap(Handle:TWindowHandle; const Filename:String; X,Y:LongWord):Boolean;
Description: A function for drawing a standard bitmap image onto an Ultibo graphics console window
[Expand]
function DrawBitmapFromStream(Handle:TWindowHandle; Stream:TStream; X,Y:LongWord):Boolean;
Description: A function for drawing a standard bitmap image onto an Ultibo graphics console window from a stream
[Expand]
function DrawBitmapFromBuffer(Handle:TWindowHandle; const Buf; Len,X,Y:LongWord):Boolean;
Description: A function for drawing a standard bitmap image onto an Ultibo graphics console window from a memory buffer
[Expand]
function SaveBitmap(Handle:TWindowHandle; const Filename:String; X,Y,Width,Height,BPP:LongWord):Boolean;
Description: A function for saving all or part of an Ultibo graphics console window to a standard bitmap file
[Expand]
function LoadBitmapToStream(const Filename:String; Stream:TStream; out Width,Height,Format:LongWord):Boolean;
Description: A function to extract a standard bitmap image into a stream object as a raw image and return the size and format
[Expand]
function LoadBitmapToBuffer(const Filename:String; var Buf; var Len:LongWord; out Width,Height,Format:LongWord):Boolean;
Description: A function to extract a standard bitmap image into a memory buffer as a raw image and return the size and format
Return to Unit Reference