Class VLBasicBitmap.TVLBasicBitmap
From Mitov Wiki Doc
				
				
				
				
																
				
				
								
				This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: Mitov.BasicLab
Unit: VLBasicBitmap
Contents | 
Syntax
Delphi:
type TVLBasicBitmap = class
C++ Builder:
class TVLBasicBitmap
Visual C++ (MFC):
class CTVLBasicBitmap
C# (.NET):
public ref class BasicBitmap
Summary
Bitmap wrapper class for thread safe bitmap access.
Description
Defines a Bitmap wrapper class for thread safe bitmap access. Use this class when you need to access a bitmap from different threads.
Properties
Public
- PixelFormat - Specifies the pixel format of the bitmap.
 - Height - The Height of the Bitmap.
 - Width - The Width of the Bitmap.
 - Canvas - Access the the drawing context of the bitmap.
 - RawData - Returns pointer to the raw bitmap data.
 
Methods
Public
- procedure Resize(AWidth : Integer; AHeight : Integer) - Resizes the bitmap.
 - procedure SetSize(AWidth : Integer; AHeight : Integer) - Resizes the bitmap.
 - procedure SaveToFile(Filename : String) - Saves the bitmap to a bitmap file.
 - procedure SaveToStream(Stream : TStream) - Saves the bitmap to a stream.
 - procedure FromBuffer(APtr : PByte; AScanlineStep : Integer) - Populates the bitmap from a video buffer.
 - procedure ToBuffer(APtr : PByte; AScanlineStep : Integer) - Populates a buffer from the bitmap data.
 - procedure ToBitmap(ABitmap : TBitmap) - Copies the bitmap to a standard bitmap object.
 - function GetDC() : HDC - Returns the Windows Device Context (DC) of the internal bitmap.
 - function GetHBitmap() : HBITMAP - Returns the HBITMAP handle of the internal bitmap.