public class MfCmdDibBitBlt extends MfCmd
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 );
Constructor and Description |
---|
MfCmdDibBitBlt() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getDestination() |
int |
getFunction()
Reads the function identifier.
|
BufferedImage |
getImage() |
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation.
|
int |
getOperation() |
Point |
getOrigin() |
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand.
|
Rectangle |
getScaledDestination() |
Point |
getScaledOrigin() |
Rectangle |
getScaledSource() |
Rectangle |
getSource() |
void |
replay(WmfFile file)
Replays the command on the given WmfFile.
|
void |
setDestination(int x,
int y,
int w,
int h) |
void |
setImage(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.
|
String |
toString() |
getScaledX, getScaledY, setScale
public BufferedImage getImage()
public void setImage(BufferedImage image)
public void replay(WmfFile file)
public MfCmd getInstance()
getInstance
in class MfCmd
public int getFunction()
getFunction
in class MfCmd
public void setOrigin(int x, int y)
public Point getOrigin()
public Rectangle getSource()
public Point getScaledOrigin()
public Rectangle getScaledSource()
public void setDestination(int x, int y, int w, int h)
public Rectangle getDestination()
public Rectangle getScaledDestination()
public void setOperation(int op)
public int getOperation()
public MfRecord getRecord() throws RecordCreationException
getRecord
in class MfCmd
RecordCreationException
- if an error occured while generating the record.public void setRecord(MfRecord record)