pdfbitmap-ag凯发旗舰厅



com.spire.pdf.graphics
class pdfbitmap

java.lang.object
  extended by com.spire.pdf.graphics.pdfgraphicswidget
      extended by com.spire.pdf.graphics.pdflayoutwidget
          extended by com.spire.pdf.graphics.pdfshapewidget
              extended by com.spire.pdf.graphics.pdfimage
                  extended by com.spire.pdf.graphics.pdfbitmap
all implemented interfaces:
ipdfwrapper

public class pdfbitmap
extends pdfimage

represents the bitmap images.


field summary
 
fields inherited from class com.spire.pdf.graphics.pdflayoutwidget
beginpagelayout
 
constructor summary
pdfbitmap(java.awt.image.bufferedimage image)
          creates new pdfbitmap instance.
pdfbitmap(java.io.inputstream stream)
          creates new pdfbitmap instance.
pdfbitmap(java.io.inputstream stream, boolean issavehighquality)
           
pdfbitmap(java.lang.string path)
          creates new pdfbitmap instance.
 
method summary
 int getactiveframe()
          gets or sets the active frame of the bitmap.
 int getframecount()
          gets the number of frames in the bitmap.
  getmask()
          gets or sets the mask of bitmap.
 long getquality()
          gets or sets the quality.
 void save()
          saves the image into stream.
 void setactiveframe(int value)
           
 void setmask( value)
           
 void setquality(long value)
           
 
methods inherited from class com.spire.pdf.graphics.pdfimage
fromfile, fromimage, fromimage, fromimage, fromstream, getheight, getphysicaldimension, getpngdirecttojpeg, getwidth, setpngdirecttojpeg
 
methods inherited from class com.spire.pdf.graphics.pdfshapewidget
getbounds
 
methods inherited from class com.spire.pdf.graphics.pdflayoutwidget
draw, draw, draw, draw, draw, draw
 
methods inherited from class com.spire.pdf.graphics.pdfgraphicswidget
draw, draw, draw
 
constructor detail

pdfbitmap

public pdfbitmap(java.awt.image.bufferedimage image)
creates new pdfbitmap instance.
parameters:
image - the image.

pdfbitmap

public pdfbitmap(java.lang.string path)
creates new pdfbitmap instance.
parameters:
path - the image path.

pdfbitmap

public pdfbitmap(java.io.inputstream stream)
creates new pdfbitmap instance.
parameters:
stream - the stream.

pdfbitmap

public pdfbitmap(java.io.inputstream stream,
                 boolean issavehighquality)
method detail

getactiveframe

public int getactiveframe()
gets or sets the active frame of the bitmap.
overrides:
getactiveframe in class pdfimage

setactiveframe

public void setactiveframe(int value)
overrides:
setactiveframe in class pdfimage

getframecount

public int getframecount()
gets the number of frames in the bitmap.

getmask

public  getmask()
gets or sets the mask of bitmap.

setmask

public void setmask( value)

getquality

public long getquality()
gets or sets the quality. when the image is stored into pdf not as a mask, you may reduce its quality, which saves the disk space.

setquality

public void setquality(long value)

save

public void save()
saves the image into stream.
specified by:
save in class pdfimage


网站地图