public class MediaDeviceDescription extends Object
Constructor and Description |
---|
MediaDeviceDescription(String type)
See MediaType class constants for possible values.
|
MediaDeviceDescription(String type, float width, float height) |
Modifier and Type | Method and Description |
---|---|
static MediaDeviceDescription |
createDefault() |
int |
getBitsPerComponent() |
int |
getColorIndex() |
float |
getHeight() |
int |
getMonochrome() |
String |
getOrientation() |
float |
getResolution() |
String |
getScan() |
String |
getType() |
float |
getWidth() |
boolean |
isGrid() |
MediaDeviceDescription |
setBitsPerComponent(int bitsPerComponent) |
MediaDeviceDescription |
setColorIndex(int colorIndex) |
MediaDeviceDescription |
setGrid(boolean grid) |
MediaDeviceDescription |
setHeight(float height) |
MediaDeviceDescription |
setMonochrome(int monochrome) |
MediaDeviceDescription |
setOrientation(String orientation) |
MediaDeviceDescription |
setResolution(float resolution) |
MediaDeviceDescription |
setScan(String scan) |
MediaDeviceDescription |
setWidth(float width) |
public MediaDeviceDescription(String type)
MediaType
class constants for possible values.
type
- a type of the media to use.
public MediaDeviceDescription(String type, float width, float height)
public static MediaDeviceDescription createDefault()
public String getType()
public int getBitsPerComponent()
public MediaDeviceDescription setBitsPerComponent(int bitsPerComponent)
public int getColorIndex()
public MediaDeviceDescription setColorIndex(int colorIndex)
public float getWidth()
public MediaDeviceDescription setWidth(float width)
public float getHeight()
public MediaDeviceDescription setHeight(float height)
public boolean isGrid()
public MediaDeviceDescription setGrid(boolean grid)
public String getScan()
public MediaDeviceDescription setScan(String scan)
public String getOrientation()
public MediaDeviceDescription setOrientation(String orientation)
public int getMonochrome()
public MediaDeviceDescription setMonochrome(int monochrome)
public float getResolution()
public MediaDeviceDescription setResolution(float resolution)
Copyright © 1998–2019 iText Group NV. All rights reserved.