|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.pixie.wmf.records.MfCmd
org.jfree.pixie.wmf.records.MfCmdDibBitBlt
public class MfCmdDibBitBlt
BitBlockTransfer - Copies PixelData of a rectangle to another position
BOOL BitBlt( HDC hdcDest, // handle to destination DC int nXDest, // x-coord of destination upper-left corner int nYDest, // y-coord of destination upper-left corner int nWidth, // width of destination rectangle int nHeight, // height of destination rectangle HDC hdcSrc, // handle to source DC int nXSrc, // x-coordinate of source upper-left corner int nYSrc, // y-coordinate of source upper-left corner DWORD dwRop // raster operation code );
Field Summary |
---|
Fields inherited from interface org.jfree.pixie.wmf.ROPConstants |
---|
BLACKNESS, DSTINVERT, MERGECOPY, MERGEPAINT, NOTSRCCOPY, NOTSRCERASE, PATCOPY, PATINVERT, PATPAINT, R2_BLACK, R2_COPYPEN, R2_LAST, R2_MASKNOTPEN, R2_MASKPEN, R2_MASKPENNOT, R2_MERGENOTPEN, R2_MERGEPEN, R2_MERGEPENNOT, R2_NOP, R2_NOT, R2_NOTCOPYPEN, R2_NOTMASKPEN, R2_NOTMERGEPEN, R2_NOTXORPEN, R2_WHITE, R2_XORPEN, SRCAND, SRCCOPY, SRCERASE, SRCINVERT, SRCPAINT, WHITENESS |
Constructor Summary | |
---|---|
MfCmdDibBitBlt()
|
Method Summary | |
---|---|
java.awt.Rectangle |
getDestination()
|
int |
getFunction()
Reads the function identifier. |
java.awt.image.BufferedImage |
getImage()
|
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation. |
int |
getOperation()
|
java.awt.Point |
getOrigin()
|
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand. |
java.awt.Rectangle |
getScaledDestination()
|
java.awt.Point |
getScaledOrigin()
|
java.awt.Rectangle |
getScaledSource()
|
java.awt.Rectangle |
getSource()
|
void |
replay(WmfFile file)
Replays the command on the given WmfFile. |
protected void |
scaleXChanged()
A callback function to inform the object, that the x scale has changed and the internal coordinate values have to be adjusted. |
protected void |
scaleYChanged()
A callback function to inform the object, that the x scale has changed and the internal coordinate values have to be adjusted. |
void |
setDestination(int x,
int y,
int w,
int h)
|
void |
setImage(java.awt.image.BufferedImage image)
|
void |
setOperation(int op)
|
void |
setOrigin(int x,
int y)
|
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed. |
java.lang.String |
toString()
|
Methods inherited from class org.jfree.pixie.wmf.records.MfCmd |
---|
applyScaleX, applyScaleY, getScaledHeight, getScaledWidth, getScaledX, getScaledY, scaleRect, setScale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MfCmdDibBitBlt()
Method Detail |
---|
public java.awt.image.BufferedImage getImage()
public void setImage(java.awt.image.BufferedImage image)
public void replay(WmfFile file)
replay
in class MfCmd
file
- the meta file.public java.lang.String toString()
toString
in class java.lang.Object
protected void scaleXChanged()
scaleXChanged
in class MfCmd
protected void scaleYChanged()
scaleYChanged
in class MfCmd
public MfCmd getInstance()
getInstance
in class MfCmd
public int getFunction()
getFunction
in class MfCmd
public void setOrigin(int x, int y)
public java.awt.Point getOrigin()
public java.awt.Rectangle getSource()
public java.awt.Point getScaledOrigin()
public java.awt.Rectangle getScaledSource()
public void setDestination(int x, int y, int w, int h)
public java.awt.Rectangle getDestination()
public java.awt.Rectangle getScaledDestination()
public void setOperation(int op)
public int getOperation()
public MfRecord getRecord() throws RecordCreationException
getRecord
in class MfCmd
RecordCreationException
public void setRecord(MfRecord record)
setRecord
in class MfCmd
record
- the raw data that makes up the record.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |