com.aspose.imaging
Class Brush

java.lang.Object
  extended by com.aspose.imaging.DisposableObject
      extended by com.aspose.imaging.Brush
Direct Known Subclasses:
HatchBrush, SolidBrush, TransformBrush

public abstract class Brush
extends DisposableObject

The base brush class.


Constructor Summary
Brush()
           
 
Method Summary
 Brush deepClone()
           Creates a new deep clone of the current Brush.
 float getOpacity()
           Gets the brush opacity.
 void setOpacity(float value)
           Sets the brush opacity.
 
Methods inherited from class com.aspose.imaging.DisposableObject
dispose, getDisposed, releaseManagedResources, releaseUnmanagedResources, verifyNotDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Brush

public Brush()
Method Detail

deepClone

public Brush deepClone()

Creates a new deep clone of the current Brush.

Returns:
A new Brush which is the deep clone of this Brush instance.

getOpacity

public float getOpacity()

Gets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Value: The brush opacity value.


setOpacity

public void setOpacity(float value)

Sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Value: The brush opacity value.