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)
Creates a new MediaDeviceDescription instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaDeviceDescription |
createDefault()
Creates the default MediaDeviceDescription.
|
int |
getBitsPerComponent()
Gets the bits per component.
|
int |
getColorIndex()
Gets the color index.
|
float |
getHeight()
Gets the height in points.
|
int |
getMonochrome()
Gets the number of bits per pixel on a monochrome (greyscale) device.
|
String |
getOrientation()
Gets the orientation.
|
float |
getResolution()
Gets the resolution in DPI.
|
String |
getScan()
Gets the scan value.
|
String |
getType()
Gets the type.
|
float |
getWidth()
Gets the width in points.
|
boolean |
isGrid()
Checks if the media device is a grid.
|
MediaDeviceDescription |
setBitsPerComponent(int bitsPerComponent)
Sets the bits per component.
|
MediaDeviceDescription |
setColorIndex(int colorIndex)
Sets the color index.
|
MediaDeviceDescription |
setGrid(boolean grid)
Sets the grid value.
|
MediaDeviceDescription |
setHeight(float height)
Sets the height in points.
|
MediaDeviceDescription |
setMonochrome(int monochrome)
Sets the number of bits per pixel on a monochrome (greyscale) device.
|
MediaDeviceDescription |
setOrientation(String orientation)
Sets the orientation.
|
MediaDeviceDescription |
setResolution(float resolution)
Sets the resolution in DPI.
|
MediaDeviceDescription |
setScan(String scan)
Sets the scan value.
|
MediaDeviceDescription |
setWidth(float width)
Sets the width in points.
|
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)
MediaDeviceDescription instance.
type - the type
width - the width
height - the height
public static MediaDeviceDescription createDefault()
MediaDeviceDescription.
public String getType()
public int getBitsPerComponent()
public MediaDeviceDescription setBitsPerComponent(int bitsPerComponent)
bitsPerComponent - the bits per component
public int getColorIndex()
public MediaDeviceDescription setColorIndex(int colorIndex)
colorIndex - the color index
public float getWidth()
public MediaDeviceDescription setWidth(float width)
width - the width
public float getHeight()
public MediaDeviceDescription setHeight(float height)
height - the height
public boolean isGrid()
public MediaDeviceDescription setGrid(boolean grid)
grid - the grid value
public String getScan()
public MediaDeviceDescription setScan(String scan)
scan - the scan value
public String getOrientation()
public MediaDeviceDescription setOrientation(String orientation)
orientation - the orientation
public int getMonochrome()
public MediaDeviceDescription setMonochrome(int monochrome)
monochrome - the number of bits per pixel on a monochrome (greyscale) device
public float getResolution()
public MediaDeviceDescription setResolution(float resolution)
resolution - the resolution
Copyright © 1998–2019 iText Group NV. All rights reserved.