Difference between revisions of "Unit uBitmap"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Reference === Description === ---- ''To be documented'' === Constants === ---- ''To be documented'' === Type definitions === ---- ''To...")
 
Line 5: Line 5:
 
----
 
----
  
''To be documented''
+
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 ===
 
=== Constants ===
Line 25: Line 30:
 
----
 
----
  
''To be documented''
+
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function DrawBitmap(Handle:TWindowHandle; const Filename:String; X,Y:LongWord):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' A function for drawing a standard bitmap image onto an Ultibo graphics console window</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''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
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function SaveBitmap(Handle:TWindowHandle; const Filename:String; X,Y,Width,Height,BPP:LongWord):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' A function for saving all or part of an Ultibo graphics console window to a standard bitmap file</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''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
 +
|-
 +
|}
 +
</div></div>
 +
<br />
  
  
 
Return to [[Unit_Reference|Unit Reference]]
 
Return to [[Unit_Reference|Unit Reference]]

Revision as of 02:43, 23 November 2016

Return to Unit Reference


Description


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


To be documented

Type definitions


To be documented

Public variables


To be documented

Function declarations


[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 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



Return to Unit Reference