public final class EmfScaleViewportExtex extends EmfStateRecordType
The EMR_SCALEVIEWPORTEXTEX record respecifies the viewport for a device context by using the ratios formed by the specified multiplicands and divisors.
The extent cannot be changed if the device context is using a fixed scale mapping mode. Only MM_ISOTROPIC and MM_ANISOTROPIC are not fixed scale. The viewport extents are modified as follows. xNewWE = (xOldWE * xNum) / xDenom yNewWE = (yOldWE * yNum) / yDenom
Constructor and Description |
---|
EmfScaleViewportExtex()
Initializes a new instance of the
EmfScaleViewportExtex class. |
EmfScaleViewportExtex(EmfRecord source)
Initializes a new instance of the
EmfScaleViewportExtex class. |
Modifier and Type | Method and Description |
---|---|
int |
getXDenom()
Gets or sets a 32-bit signed integer that specifies the horizontal divisor.
|
int |
getXNum()
Gets or sets a 32-bit signed integer that specifies the horizontal multiplicand.
|
int |
getYDenom()
Gets or sets a 32-bit signed integer that specifies the vertical divisor.
|
int |
getYNum()
Gets or sets a 32-bit signed integer that specifies the vertical multiplicand.
|
void |
setXDenom(int value)
Gets or sets a 32-bit signed integer that specifies the horizontal divisor.
|
void |
setXNum(int value)
Gets or sets a 32-bit signed integer that specifies the horizontal multiplicand.
|
void |
setYDenom(int value)
Gets or sets a 32-bit signed integer that specifies the vertical divisor.
|
void |
setYNum(int value)
Gets or sets a 32-bit signed integer that specifies the vertical multiplicand.
|
public EmfScaleViewportExtex(EmfRecord source)
Initializes a new instance of the EmfScaleViewportExtex
class.
source
- The source.public EmfScaleViewportExtex()
Initializes a new instance of the EmfScaleViewportExtex
class.
public int getXNum()
Gets or sets a 32-bit signed integer that specifies the horizontal multiplicand. Cannot be zero.
public void setXNum(int value)
Gets or sets a 32-bit signed integer that specifies the horizontal multiplicand. Cannot be zero.
public int getXDenom()
Gets or sets a 32-bit signed integer that specifies the horizontal divisor. Cannot be zero.
public void setXDenom(int value)
Gets or sets a 32-bit signed integer that specifies the horizontal divisor. Cannot be zero.
public int getYNum()
Gets or sets a 32-bit signed integer that specifies the vertical multiplicand. Cannot be zero.
public void setYNum(int value)
Gets or sets a 32-bit signed integer that specifies the vertical multiplicand. Cannot be zero.
public int getYDenom()
Gets or sets a 32-bit signed integer that specifies the vertical divisor. Cannot be zero.
public void setYDenom(int value)
Gets or sets a 32-bit signed integer that specifies the vertical divisor. Cannot be zero.