IPen

All Implemented Interfaces: com.aspose.ms.System.IDisposable

public interface IPen extends System.IDisposable

Represents generic solid pen for barcode generation drawing.

Methods

MethodDescription
getColor()Gets solid color of pen.
getDashStyle()Gets dash style of pen.
getThickness()Gets thickness of pen in pixels.
setDashStyle(PenDashStyle value)Sets dash style of pen.

getColor()

public abstract int getColor()

Gets solid color of pen.

Returns: int - Color of pen.

getDashStyle()

public abstract PenDashStyle getDashStyle()

Gets dash style of pen.

Returns: com.aspose.barcode.drawing.PenDashStyle - Dash style

getThickness()

public abstract float getThickness()

Gets thickness of pen in pixels.

Returns: float - Thickness of pen

setDashStyle(PenDashStyle value)

public abstract void setDashStyle(PenDashStyle value)

Sets dash style of pen.

Parameters:

ParameterTypeDescription
valuecom.aspose.barcode.drawing.PenDashStyleThe dash style