Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 getPixels ()
 
 setPixels ($value)
 
 getInches ()
 
 setInches ($value)
 
 getMillimeters ()
 
 setMillimeters ($value)
 
 getPoint ()
 
 setPoint ($value)
 
 getDocument ()
 
 setDocument ($value)
 
 toString ()
 
 equals ($obj)
 

Detailed Description

Specifies the size value in different units (Pixel, Inches, etc.). This sample shows how to create and save a BarCode image. $generator = new BarcodeGenerator(EncodeTypes::CODE_128); $generator->getParameters()->getBarcode()->getBarHeight()->setMillimeters(10); $generator->save("test.png");

Member Function Documentation

◆ equals()

equals (   $obj)

Determines whether this instance and a specified object, which must also be a Unit object, have the same value.

Parameters
objThe Unit to compare to this instance.
Returns
true if obj is a Unit and its value is the same as this instance; otherwise, false. If obj is null, the method returns false.

◆ getDocument()

getDocument ( )

Gets size value in document units.

◆ getInches()

getInches ( )

Gets size value in inches.

◆ getMillimeters()

getMillimeters ( )

Gets size value in millimeters.

◆ getPixels()

getPixels ( )

Gets size value in pixels.

◆ getPoint()

getPoint ( )

Gets size value in point.

◆ setDocument()

setDocument (   $value)

Sets size value in document units.

◆ setInches()

setInches (   $value)

Sets size value in inches.

◆ setMillimeters()

setMillimeters (   $value)

Sets size value in millimeters.

◆ setPixels()

setPixels (   $value)

Sets size value in pixels.

◆ setPoint()

setPoint (   $value)

Sets size value in point.

◆ toString()

toString ( )

Returns a human-readable string representation of this Unit.

Returns
A string that represents this Unit.