Share via


Image.transparent Method

Definition

Overloads

transparent()

Sets the transparent color for the image.

transparent(Boolean)
transparent(Boolean, Int32)
transparent(Boolean, Int32, Int32)
transparent(Boolean, Int32, Int32, Int32)

transparent()

Sets the transparent color for the image.

public:
 virtual int transparent();
public virtual int transparent ();
abstract member transparent : unit -> int
override this.transparent : unit -> int
Public Overridable Function transparent () As Integer

Returns

0 to indicate success; otherwise, failure.

Remarks

If any of the input parameters are missing, the color at the point (0,0) in the image is used. If you want to specify a color, this is expressed as an RGB color by using parameters 2 to 4.

Applies to

transparent(Boolean)

public:
 virtual int transparent(bool flag1);
public virtual int transparent (bool flag1);
abstract member transparent : bool -> int
override this.transparent : bool -> int
Public Overridable Function transparent (flag1 As Boolean) As Integer

Parameters

flag1
Boolean

Returns

Applies to

transparent(Boolean, Int32)

public:
 virtual int transparent(bool flag1, int num1);
public virtual int transparent (bool flag1, int num1);
abstract member transparent : bool * int -> int
override this.transparent : bool * int -> int
Public Overridable Function transparent (flag1 As Boolean, num1 As Integer) As Integer

Parameters

flag1
Boolean
num1
Int32

Returns

Applies to

transparent(Boolean, Int32, Int32)

public:
 virtual int transparent(bool flag1, int num1, int num2);
public virtual int transparent (bool flag1, int num1, int num2);
abstract member transparent : bool * int * int -> int
override this.transparent : bool * int * int -> int
Public Overridable Function transparent (flag1 As Boolean, num1 As Integer, num2 As Integer) As Integer

Parameters

flag1
Boolean
num1
Int32
num2
Int32

Returns

Applies to

transparent(Boolean, Int32, Int32, Int32)

public:
 virtual int transparent(bool _Set, int _RValue, int _GValue, int _BValue);
public virtual int transparent (bool _Set, int _RValue, int _GValue, int _BValue);
abstract member transparent : bool * int * int * int -> int
override this.transparent : bool * int * int * int -> int
Public Overridable Function transparent (_Set As Boolean, _RValue As Integer, _GValue As Integer, _BValue As Integer) As Integer

Parameters

_Set
Boolean

Blue value of the color that you want to set; optional.

_RValue
Int32

Blue value of the color that you want to set; optional.

_GValue
Int32

Blue value of the color that you want to set; optional.

_BValue
Int32

Blue value of the color that you want to set; optional.

Returns

Applies to