vmlfill-ag凯发旗舰厅



com.spire.doc.fields.shape
class vmlfill

java.lang.object
  extended by com.spire.doc.fields.shape.vmlfill
direct known subclasses:
backgroundgradient

public class vmlfill
extends java.lang.object

defines a fill for a shape.

use the shape.fill property to access fill properties of a shape. you do not create instances of the fill class directly.

although the fill class provides properties to specify solid color fill only, all of the more complex fill types, including as gradient, pattern and texture are fully preserved during document open-save cycles.

shape.fill


method summary
 java.awt.color getcolor()
          defines the color of a fill.
 byte[] getimagebytes()
          gets the raw bytes of the fill texture or pattern.
 boolean geton()
          determines whether the shape will be filled.
 double getopacity()
          defines the transparency of a fill.
 void setcolor(java.awt.color value)
          sets the color of a fill.
 void seton(boolean value)
          sets whether the shape will be filled.
 void setopacity(double value)
           
 
method detail

getcolor

public java.awt.color getcolor()
defines the color of a fill.

the default value is system.drawing.color.white java.awt.color.white

returns:
java.awt.color

setcolor

public void setcolor(java.awt.color value)
sets the color of a fill.

the default value is system.drawing.color.white java.awt.color.white

parameters:
value - java.awt.color

getopacity

public double getopacity()
defines the transparency of a fill. valid range from 0 to 1, where 0 is fully transparent and 1 is fully opaque.

the default value is 1.

returns:
double

setopacity

public void setopacity(double value)

geton

public boolean geton()
determines whether the shape will be filled.

the default value is true.

returns:
boolean

seton

public void seton(boolean value)
sets whether the shape will be filled.

the default value is true.

parameters:
value - boolean

getimagebytes

public byte[] getimagebytes()
gets the raw bytes of the fill texture or pattern.

the default value is null.

returns:
byte[]


网站地图