UniPRT SDK  v1.0.0.0
com.UniPRT.Sdk.LabelMaker.PrintResolution Class Reference
Inheritance diagram for com.UniPRT.Sdk.LabelMaker.PrintResolution:
com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution

Public Member Functions

 PrintResolution (float dotsPerUnit, ScaleEnum unit)
 Define the printer resolution in dots per inch or dots per mm. More...
 
float GetDotsPerInch ()
 Dots per Inch print resolution. More...
 
void SetDotsPerInch (float dotsPerInch)
 
float GetDotsPerMM ()
 Dots per MM print resolution. More...
 
void SetDotsPerMM (float dotsPerMM)
 

Private Attributes

float dotsPerInch = DEFAULT_DPI
 
float dotsPerMM = DEFAULT_DPI / MM_PER_INCH
 

Static Private Attributes

static final float DEFAULT_DPI = 300
 
static final float MM_PER_INCH = 25.4f
 

Constructor & Destructor Documentation

◆ PrintResolution()

com.UniPRT.Sdk.LabelMaker.PrintResolution.PrintResolution ( float  dotsPerUnit,
ScaleEnum  unit 
)

Define the printer resolution in dots per inch or dots per mm.

References com.UniPRT.Sdk.LabelMaker.Enum.ScaleEnum.Inch, and com.UniPRT.Sdk.LabelMaker.Enum.ScaleEnum.MM.

Member Function Documentation

◆ GetDotsPerInch()

◆ GetDotsPerMM()

float com.UniPRT.Sdk.LabelMaker.PrintResolution.GetDotsPerMM ( )

◆ SetDotsPerInch()

void com.UniPRT.Sdk.LabelMaker.PrintResolution.SetDotsPerInch ( float  dotsPerInch)

◆ SetDotsPerMM()

void com.UniPRT.Sdk.LabelMaker.PrintResolution.SetDotsPerMM ( float  dotsPerMM)

Member Data Documentation

◆ DEFAULT_DPI

final float com.UniPRT.Sdk.LabelMaker.PrintResolution.DEFAULT_DPI = 300
staticprivate

◆ dotsPerInch

float com.UniPRT.Sdk.LabelMaker.PrintResolution.dotsPerInch = DEFAULT_DPI
private

◆ dotsPerMM

float com.UniPRT.Sdk.LabelMaker.PrintResolution.dotsPerMM = DEFAULT_DPI / MM_PER_INCH
private

◆ MM_PER_INCH

final float com.UniPRT.Sdk.LabelMaker.PrintResolution.MM_PER_INCH = 25.4f
staticprivate

The documentation for this class was generated from the following file: