public class MSTDocumentPage extends java.lang.Object implements IMSTPage
BitCount, Height, QuailtyFactor, Rotation, Scale, Width, XResolution, YResolution
Constructor and Description |
---|
MSTDocumentPage(Rotate rotation,
double scale,
ResizeQuality qualityFactor,
double width,
double height,
int bitCount,
double resolution,
double resolution2,
java.awt.image.BufferedImage bi,
java.io.InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
boolean |
Draw(java.awt.Graphics g,
java.awt.Component a)
Draws the image on the given graphics object.
|
IMSTLetters |
ExtractText()
Returns the object of class MSTLetter for searching the string .
|
java.awt.Rectangle[] |
Find(java.lang.String Text,
boolean MatchCase)
Returns the array of the rectangles for the given text that is to be searched.
|
int |
get_BitCount()
Returns the bit depth of the image.
|
float |
get_Height()
Retuens the height of the image.
|
int |
get_pageNo()
Return the page no.
|
ResizeQuality |
get_QualityFactor() |
Rotate |
get_Rotation()
Returns the rotation of the image.
|
double |
get_Scale()
return the scale of the image.
|
float |
get_Width()
Returns the width of the image.
|
float |
get_XResolution()
Gets the X-resolution.
|
float |
get_YResolution()
Sets the Y-resolution.
|
java.awt.image.BufferedImage |
GetPageImage()
Return the bufferedImage of specified page.
|
java.io.InputStream |
GetPageStream()
Return the inputstream of specified page.
|
void |
set_BitCount(int bitCount)
set the bit depth of the image.
|
void |
set_Height(float height)
Sets the height of the image.
|
void |
set_pageNo(int pageNo)
Sets the page no.
|
void |
set_QualityFactor(ResizeQuality qualityFactor) |
void |
set_Rotation(Rotate rotation)
Sets the rotation value of the image.
|
void |
set_Scale(double scale)
set the scale of image.
|
void |
set_Width(float width)
Sets the width of the image.
|
void |
set_XResolution(float resolution)
Sets the X-resolution.
|
void |
set_YResolution(float resolution)
Sets the Y-resolution.
|
boolean |
SetPageImage(java.awt.image.BufferedImage image)
sets the bufferedImage of specified page.
|
boolean |
SetPageStream(java.io.InputStream stream)
set the inputstream of specified page.
|
public MSTDocumentPage(Rotate rotation, double scale, ResizeQuality qualityFactor, double width, double height, int bitCount, double resolution, double resolution2, java.awt.image.BufferedImage bi, java.io.InputStream inputStream)
public Rotate get_Rotation() throws MSTException
IMSTPage
get_Rotation
in interface IMSTPage
MSTException
public void set_Rotation(Rotate rotation) throws MSTException
IMSTPage
set_Rotation
in interface IMSTPage
MSTException
public double get_Scale() throws MSTException
IMSTPage
get_Scale
in interface IMSTPage
MSTException
public void set_Scale(double scale) throws MSTException
IMSTPage
set_Scale
in interface IMSTPage
MSTException
public ResizeQuality get_QualityFactor() throws MSTException
get_QualityFactor
in interface IMSTPage
MSTException
public void set_QualityFactor(ResizeQuality qualityFactor) throws MSTException
set_QualityFactor
in interface IMSTPage
MSTException
public float get_Width() throws MSTException
IMSTPage
get_Width
in interface IMSTPage
MSTException
public void set_Width(float width) throws MSTException
IMSTPage
set_Width
in interface IMSTPage
MSTException
public float get_Height() throws MSTException
IMSTPage
get_Height
in interface IMSTPage
MSTException
public void set_Height(float height) throws MSTException
IMSTPage
set_Height
in interface IMSTPage
MSTException
public int get_BitCount() throws MSTException
IMSTPage
get_BitCount
in interface IMSTPage
MSTException
public void set_BitCount(int bitCount) throws MSTException
IMSTPage
set_BitCount
in interface IMSTPage
MSTException
public float get_XResolution() throws MSTException
IMSTPage
get_XResolution
in interface IMSTPage
MSTException
public void set_XResolution(float resolution) throws MSTException
IMSTPage
set_XResolution
in interface IMSTPage
MSTException
public float get_YResolution() throws MSTException
IMSTPage
get_YResolution
in interface IMSTPage
MSTException
public void set_YResolution(float resolution) throws MSTException
IMSTPage
set_YResolution
in interface IMSTPage
MSTException
public boolean SetPageImage(java.awt.image.BufferedImage image) throws MSTException
IMSTPage
SetPageImage
in interface IMSTPage
MSTException
public boolean SetPageStream(java.io.InputStream stream) throws MSTException
IMSTPage
SetPageStream
in interface IMSTPage
MSTException
public java.awt.image.BufferedImage GetPageImage() throws MSTException
IMSTPage
GetPageImage
in interface IMSTPage
MSTException
public java.io.InputStream GetPageStream() throws MSTException
IMSTPage
GetPageStream
in interface IMSTPage
MSTException
public boolean Draw(java.awt.Graphics g, java.awt.Component a) throws MSTException
IMSTPage
Draw
in interface IMSTPage
g
- Graphics classs object on which the image is to be drawn.MSTException
public int get_pageNo() throws MSTException
IMSTPage
get_pageNo
in interface IMSTPage
MSTException
public void set_pageNo(int pageNo) throws MSTException
IMSTPage
set_pageNo
in interface IMSTPage
MSTException
public IMSTLetters ExtractText() throws MSTException
IMSTPage
ExtractText
in interface IMSTPage
MSTException
public java.awt.Rectangle[] Find(java.lang.String Text, boolean MatchCase) throws MSTException
IMSTPage
Find
in interface IMSTPage
Text
- String that is to be searched.MatchCase
- true if case are to be matchedMSTException