User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_bitmap

TGIS_Bitmap class

DK11 for .NET | TatukGIS.NDK.TGIS_Bitmap | Classes | Constructors | Methods | Properties

Platform independent Bitmap (same object for all platforms).

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public class TGIS_Bitmap : TGIS_ObjectDisposable
{
}
' VisualBasic
Public Class TGIS_Bitmap
  Inherits TGIS_ObjectDisposable
End Class
// Oxygene
type
  TGIS_Bitmap = public class( TGIS_ObjectDisposable )
  end;

Inheritance

→ TGIS_ObjectDisposable

Constructors

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

Methods

Inherited Overrides Protected
Name Visibility Description
Assign public Assign bitmap from other instance.
DrawBitmap public Draw rectangle part of a bitmap on a apart of a bitmap
DrawShape public Draw a shape on a bitmap (for internal TGIS_LayerVector.PrepareContourInternal purposes).
DrawSymbol 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, string) public Load bitmap from resource from specific module.
LoadFromResourceName(string) public Load bitmap from DK standard resource.
LoadFromStream public Load bitmap from platform stream.
LockPixels(Int32[]) public Return read only raw pixels in native system format and native system line order,
LockPixels(Int32[], bool) public Return raw pixels in native system format and native system line order.
LockPixels(Int32[], 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
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

2019/01/25 16:54