Modifier and Type | Class and Description |
---|---|
static class |
DeviceApi.SignatureImage.Alignment
Has several alignment options.
|
static class |
DeviceApi.SignatureImage.ResizeOption
Has various resize options.
|
Modifier and Type | Method and Description |
---|---|
static Optional<BufferedImage> |
get(int width,
int height)
Gets the signature image.
|
static Optional<DeviceApi.SignatureImage.Alignment> |
getAlignment()
Gets the alignment option.
|
static Optional<Color> |
getBackgroundColor()
Gets the background color.
|
static Optional<Color> |
getLineColor()
Gets the line color.
|
static Optional<Double> |
getLineWidth()
Gets the line width.
|
static boolean |
multiplyLineWidth(double factor)
Scales the line width
|
static boolean |
setAlignment(DeviceApi.SignatureImage.Alignment alignment)
Sets the alignment option.
|
static boolean |
setBackgroundColor(Color color)
Sets the background color.
|
static boolean |
setLineColor(Color color)
Sets the line color
|
static boolean |
setLineWidth(double width)
Sets the line width.
|
static boolean |
setResizeOption(DeviceApi.SignatureImage.ResizeOption resizeOption)
Sets the resize option.
|
public static Optional<BufferedImage> get(int width, int height)
width
- The desired width.height
- The desired height.DeviceApi.SignatureImage.ResizeOption
s have to be set for the width and height
arguments to have an effect.public static Optional<DeviceApi.SignatureImage.Alignment> getAlignment()
public static boolean setAlignment(DeviceApi.SignatureImage.Alignment alignment)
alignment
- The desired alignment.public static Optional<Color> getBackgroundColor()
public static boolean setBackgroundColor(Color color)
color
- The color.public static Optional<Color> getLineColor()
public static boolean setLineColor(Color color)
color
- The color.public static Optional<Double> getLineWidth()
public static boolean setLineWidth(double width)
width
- The width.multiplyLineWidth(double)
.public static boolean multiplyLineWidth(double factor)
factor
- The scale factor.public static boolean setResizeOption(DeviceApi.SignatureImage.ResizeOption resizeOption)
resizeOption
- The resize option.Copyright © 2024. All rights reserved.