User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_bitmap

TGIS_Bitmap class

DK11 for Python | tatukgis.pdk.TGIS_Bitmap | Classes | Constructors | Methods | Properties

Platform independent Bitmap (same object for all platforms).

Available also on: Delphi | .NET | Java | ActiveX.

Syntax

# Python
class TGIS_Bitmap( Object ):

Inheritance

→ Object

Constructors

Inherited Overrides Protected
Name Visibility Description
__init__() public Create an instance.
__init__(int, int) public Create an instance with a given size.
__init__(int, int, bool) public Create an instance with a given size.
__init__(int, int, TGIS_BitmapFactory) public Create an instance with a given size with a given bitmap factory.
__init__(TGIS_Bitmap) public Create an instance from exiting bitmap.

Methods

Inherited Overrides Protected
Name Visibility Description
AsPng public Export png as ready as arry of bytes in PNG format.
Assign public Assign bitmap from other instance.
CreateViewer public Create a bitmap viewer
DrawBitmap(TGIS_Bitmap, TGIS_Pixels, TRect, TRect) public Draw rectangle part of a bitmap on a part of a bitmap
DrawBitmap(TGIS_Bitmap, TRect, TRect) public Draw rectangle part of a bitmap on a part of a bitmap
DrawGlyph public Draws symbolk optimized to be used by a buttn glyph
DrawShape(TObject, bool, float, TPoint) public Draw a shape on a bitmap (for internal TGIS_Shape.PrepareContourInternal purposes).
DrawShape(TObject, int, bool, float, TPoint) public Draw a shape on a bitmap (for internal TGIS_Shape.PrepareContourInternal purposes).
DrawShape(TObject, int, bool, TGIS_Color, TGIS_Color, float, TPoint) public Draw a shape on a bitmap (for internal TGIS_Shape.PrepareContourInternal purposes).
DrawSymbol(str) public Draws symbol
DrawSymbol(str, int) public Draws symbol
DrawSymbol(str, int, TGIS_Color, TGIS_Color) public Draws symbol
IsNilOrEmpty public Test if bitmap is emptyt or nil
LoadFromBitmap public Load bitmap from platform specific bitmap object.
LoadFromFile public Load bitmap from file.
LoadFromResourceName(IntPtr, str) public Load bitmap from resource from specific module.
LoadFromResourceName(str) public Load bitmap from DK standard resource.
LoadFromStream public Load bitmap from platform stream.
LockPixels(TGIS_Pixels) public Return read only raw pixels in native system format and native system line order,
LockPixels(TGIS_Pixels, bool) public Return raw pixels in native system format and native system line order.
LockPixels(TGIS_Pixels, bool, TGIS_BitmapFormat, TGIS_BitmapLinesOrder) public Return raw pixels
MakeGlowing public Add semitransparent "glowing" shadow to the bitmap.
MakeTransparent public Make bitmap transparent by replacing all pixels with same color as left-up corner with TGIS_Color.None color (full ARGB transparency)
NativeFormat public Native format of bitmaps (ARGB or ABGR) for current platform
NativeLineOrder public Native line order of bitmaps (up-down or down-up) for current platform.
SaveToFile public Save bitmap to file.
SaveToStream(TObject) public Save bitmap to stream.
SaveToStream(TObject, TGIS_PixelFormat, TGIS_PixelSubFormat, int) public Save bitmap to stream.
ScaleBitmap public Scales bitmap using filtering
UnlockPixels public Unlock pixels obtained by Lock() method.

Properties

Inherited Protected
Name Visibility Description
BitmapFactory public Bitmap factory used to produce the bitmap data.
Height public Bitmap height in pixels.
IsEmpty public True if bitmap is empty (has no NativeBitmap attached.
NativeBitmap public Platform specific bitmap object (like TBitmap for VCL).
Path public Path to bitmap (exits always for bitmap created form files).
Premultiplied public True if bitmap should be treated as premultipied.
Transparent public True if bitmap is transparent.
Width public Bitmap width in pixels.

References

2024/07/05 21:02

Page Tools