User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_bitmapabstract.applyopacity_integer

Table of Contents

TGIS_BitmapAbstract.ApplyOpacity method

DK for .NET | TatukGIS.NDK.TGIS_BitmapAbstract.ApplyOpacity | Fields | Methods | Properties

Apply opacity to the bitmap.

Available also on: Delphi | Java | Python.

Syntax

// C#
public virtual abstract void ApplyOpacity(
  int _transparency
);
' VisualBasic
Public Overridable MustOverride Sub ApplyOpacity(
  ByVal _transparency As Integer
)
// Oxygene
public
  procedure ApplyOpacity(
    _transparency : Integer
  ); virtual; abstract;

Parameters

Name Type Description
_transparency int
Integer
opacity value to apply

Remarks

PURPOSE: Adjusts the current bitmap opacity before further rendering or compositing.

BEHAVIOR: Delegates to the underlying platform bitmap to apply the specified opacity value to the image.

USAGE: Fade an off-screen bitmap before drawing new content.

alpha = Round(calcAlpha)
buffer.ApplyOpacity(alpha)

2026/09/20 23:51

Page Tools