Unit uBitmap

From Ultibo.org
Revision as of 03:58, 27 September 2017 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


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:

Constants


None defined

Type definitions


None defined

Public variables


None defined

Function declarations



uBitmap functions

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
Handle The handle of an existing graphics console window
Filename The name of the file to load the bitmap from
X The column position for the left edge of the bitmap
Y The row position for the top row of the bitmap
Return True if successful or False is an error occurred


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
Handle The handle of an existing graphics console window
Filename The name of the file to save the bitmap to
X The column position for the left edge of the bitmap
Y The row position for the top row of the bitmap
Width The width (in pixels) of the bitmap
Height The height (in pixels) of the bitmap
BPP The bits per pixel value for the bitmap (eg 16, 24 or 32)
Return True if successful or False is an error occurred


Return to Unit Reference