[Overview][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Bitmap class for the Mufasa library
Source position: bitmaps.pas line 35
type TMufasaBitmap = class(TObject) |
||
public |
||
OnDestroy: ; |
|
Called when destroying the TMufasaBitmap |
property Name: String; [rw] |
|
Name of the bitmap. Mainly for debugging purposes. |
property Index: Integer; [rw] |
||
procedure SetSize(); |
|
Set the bitmap to the given size. |
procedure StretchResize(); |
||
property Width: Integer; [r] |
||
property Height: Integer; [r] |
||
procedure ValidatePoint(); |
|
Returns true if the point is within the bitmap size. |
function SaveToFile(); |
|
Save the TMufasaBitmap to a file. |
procedure LoadFromFile(); |
|
Load a TMufasaBitmap from file. All bitmap types supported by TLazIntFImage are supported. |
procedure Rectangle(); |
|
Fill a rectangle with a specific colour. |
procedure FloodFill(); |
||
procedure FastSetPixel(); |
||
procedure FastSetPixels(); |
||
procedure DrawATPA(); |
||
procedure DrawTPA(); |
|
Draw the points in the tpointarray on the bitmap with the given colour. |
procedure DrawToCanvas(); |
|
Draw the bitmap on a canvas. |
function CreateTPA(); |
||
function FastGetPixel(); |
|
Returns the colour at the corresponding point. |
function FastGetPixels(); |
|
Return the corresponding colour of each point. |
function GetAreaColors(); |
|
Return the bitmap data in a two dimensional array. |
procedure FastDrawClear(); |
|
Fill the bitmap with a specific colour. |
procedure FastDrawTransparent(); |
||
procedure FastReplaceColor(); |
|
Replace OldColor with NewColor. |
procedure CopyClientToBitmap(); |
|
Copy (a part of) the Window to the bitmap. |
procedure RotateBitmap(); |
|
Rotate the bitmap. |
procedure Desaturate(); |
|
Desaturates the bitmap. |
procedure GreyScale(); |
|
Greyscales the bitmap |
procedure Brightness(); |
|
Change brightness |
procedure Contrast(); |
|
Change contrast. |
procedure Invert(); |
|
Invert the colours on the bitmap. |
procedure Posterize(); |
|
Posterizes the target bitmap |
function Copy(); |
|
Create a (partial) copy of the TMufasaBitmap. |
function ToTBitmap; |
|
Creates a TBitmap from a TMufasaBitmap. |
function ToString; |
|
Turn the bitmap data into a string, base64 encoded. |
procedure LoadFromTBitmap(); |
|
Load the data of a TBitmap into the TMufasaBitmap |
procedure LoadFromRawImage(); |
|
Loads a bitmap from a RawImage type. |
function CreateTMask; |
||
procedure SetTransparentColor(); |
||
function GetTransparentColor; |
||
property TransparentColorSet: Boolean; [r] |
||
procedure SetAlphaValue(); |
||
constructor Create; |
||
destructor Destroy; override; |
||
end; |
|
Bitmap class for the Mufasa library |
|
| | ||
TObject |