Documentation
¶
Overview ¶
Represents the base class for response.
Index ¶
- type BmpColorFormat
- type BmpImageFormat
- type BmpMonochromeColorFormat
- func (b *BmpMonochromeColorFormat) GetBlackThreshold() int
- func (b *BmpMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
- func (b *BmpMonochromeColorFormat) GetDitheringPercent() int
- func (b *BmpMonochromeColorFormat) SetBlackThreshold(threshold int)
- func (b *BmpMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
- func (b *BmpMonochromeColorFormat) SetDitheringPercent(percent int)
- type ColorFormat
- type ColorFormatType
- type CompressionType
- type DitheringAlgorithm
- type DpiImageSize
- type FixedImageSize
- type GifImageFormat
- type Image
- type ImageFormat
- type ImageFormatType
- type ImageSize
- type ImageSizeType
- type ImageSizeUnit
- type JpegImageFormat
- type JsonResponse
- func (r *JsonResponse) ClientError() error
- func (r *JsonResponse) ErrorId() uuid.UUID
- func (r *JsonResponse) ErrorJson() string
- func (r *JsonResponse) ErrorMessage() string
- func (r *JsonResponse) IsSuccessful() bool
- func (r *JsonResponse) SetStatusMessage(statusMessage string)
- func (r *JsonResponse) StatusCode() int
- type MaxImageSize
- type PdfImage
- type PdfImageResponse
- type PercentageImageSize
- type PngColorFormat
- type PngImageFormat
- type PngIndexedColorFormat
- func (p *PngIndexedColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
- func (p *PngIndexedColorFormat) GetDitheringPercent() int
- func (p *PngIndexedColorFormat) GetQuantizationAlgorithm() QuantizationAlgorithm
- func (p *PngIndexedColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
- func (p *PngIndexedColorFormat) SetDitheringPercent(percent int)
- func (p *PngIndexedColorFormat) SetQuantizationAlgorithm(algorithm QuantizationAlgorithm)
- type PngMonochromeColorFormat
- func (p *PngMonochromeColorFormat) GetBlackThreshold() int
- func (p *PngMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
- func (p *PngMonochromeColorFormat) GetDitheringPercent() int
- func (p *PngMonochromeColorFormat) SetBlackThreshold(threshold int)
- func (p *PngMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
- func (p *PngMonochromeColorFormat) SetDitheringPercent(percent int)
- type QuantizationAlgorithm
- type Response
- type TiffColorFormat
- type TiffImageFormat
- type TiffIndexedColorFormat
- func (t *TiffIndexedColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
- func (t *TiffIndexedColorFormat) GetDitheringPercent() int
- func (t *TiffIndexedColorFormat) GetQuantizationAlgorithm() QuantizationAlgorithm
- func (t *TiffIndexedColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
- func (t *TiffIndexedColorFormat) SetDitheringPercent(percent int)
- func (t *TiffIndexedColorFormat) SetQuantizationAlgorithm(algorithm QuantizationAlgorithm)
- type TiffMonochromeColorFormat
- func (t *TiffMonochromeColorFormat) GetBlackThreshold() int
- func (t *TiffMonochromeColorFormat) GetCompressionType() CompressionType
- func (t *TiffMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
- func (t *TiffMonochromeColorFormat) GetDitheringPercent() int
- func (t *TiffMonochromeColorFormat) SetBlackThreshold(threshold int)
- func (t *TiffMonochromeColorFormat) SetCompressionType(compression CompressionType)
- func (t *TiffMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
- func (t *TiffMonochromeColorFormat) SetDitheringPercent(percent int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BmpColorFormat ¶
type BmpColorFormat struct {
ColorFormat
}
Base class for BMP color formats
func NewBmpColorFormat ¶
func NewBmpColorFormat(colorFormatType ColorFormatType) *BmpColorFormat
Creates BmpColorFormat object with the given type.
type BmpImageFormat ¶
type BmpImageFormat struct {
ImageFormat
}
Represents BMP image format with color format.
func NewBmpImageFormat ¶
func NewBmpImageFormat() *BmpImageFormat
Initializes a new instance of the BmpImageFormat class.
func (*BmpImageFormat) GetColorFormat ¶
func (b *BmpImageFormat) GetColorFormat() ColorFormat
GetColorFormat returns the color format of the BMP image.
func (*BmpImageFormat) SetColorFormat ¶
func (b *BmpImageFormat) SetColorFormat(colorFormat ColorFormat)
SetColorFormat sets the color format of the BMP image.
type BmpMonochromeColorFormat ¶
type BmpMonochromeColorFormat struct {
BmpColorFormat
}
Represents monochrome color format for BMP images.
func NewBmpMonochromeColorFormat ¶
func NewBmpMonochromeColorFormat() *BmpMonochromeColorFormat
Creates object for monochrome color format for BMP image format.
func (*BmpMonochromeColorFormat) GetBlackThreshold ¶
func (b *BmpMonochromeColorFormat) GetBlackThreshold() int
GetBlackThreshold returns the black threshold for monochrome BMP images.
func (*BmpMonochromeColorFormat) GetDitheringAlgorithm ¶
func (b *BmpMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm for BMP images.
func (*BmpMonochromeColorFormat) GetDitheringPercent ¶
func (b *BmpMonochromeColorFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage for BMP images.
func (*BmpMonochromeColorFormat) SetBlackThreshold ¶
func (b *BmpMonochromeColorFormat) SetBlackThreshold(threshold int)
SetBlackThreshold sets the black threshold for monochrome BMP images.
func (*BmpMonochromeColorFormat) SetDitheringAlgorithm ¶
func (b *BmpMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm for BMP images.
func (*BmpMonochromeColorFormat) SetDitheringPercent ¶
func (b *BmpMonochromeColorFormat) SetDitheringPercent(percent int)
SetDitheringPercent sets the dithering percentage for BMP images.
type ColorFormat ¶
type ColorFormat struct { // Gets or sets the color format type. Type ColorFormatType `json:"type,omitempty"` // contains filtered or unexported fields }
Base class for all color formats.
func (*ColorFormat) MarshalJSON ¶
func (p *ColorFormat) MarshalJSON() ([]byte, error)
type ColorFormatType ¶
type ColorFormatType string
Enum representing color formats.
const ( // Rgb color format. Rgb ColorFormatType = "RGB" // RgbA color format. RgbA ColorFormatType = "RGBA" // Grayscale color format. Grayscale ColorFormatType = "Grayscale" // Monochrome color format. Monochrome ColorFormatType = "Monochrome" // Indexed color format. Indexed ColorFormatType = "Indexed" )
type CompressionType ¶
type CompressionType string
Enum representing compression types.
const ( // CcitGroup3 compression. CcitGroup3 CompressionType = "CCIT Group 3" // CcitGroup4 compression. CcitGroup4 CompressionType = "CCIT Group 4" )
type DitheringAlgorithm ¶
type DitheringAlgorithm string
Enum representing dithering algorithms.
const ( // FloydSteinberg dithering algorithm. FloydSteinberg DitheringAlgorithm = "Floyd-Steinberg" // Bayer dithering algorithm. Bayer DitheringAlgorithm = "Bayer" // No dithering. None DitheringAlgorithm = "None" )
type DpiImageSize ¶
type DpiImageSize struct {
ImageSize
}
Represents an image size defined by DPI (Dots Per Inch).
func NewDpiImageSize ¶
func NewDpiImageSize() *DpiImageSize
NewDpiImageSize creates a new instance of DpiImageSize and sets the image size type to DPI.
func (*DpiImageSize) GetHorizontalDpi ¶
func (d *DpiImageSize) GetHorizontalDpi() int
GetHorizontalDpi returns the horizontal DPI of the image.
func (*DpiImageSize) GetVerticalDpi ¶
func (d *DpiImageSize) GetVerticalDpi() int
GetVerticalDpi returns the vertical DPI of the image.
func (*DpiImageSize) SetHorizontalDpi ¶
func (d *DpiImageSize) SetHorizontalDpi(value int)
SetHorizontalDpi sets the horizontal DPI of the image.
func (*DpiImageSize) SetVerticalDpi ¶
func (d *DpiImageSize) SetVerticalDpi(value int)
SetVerticalDpi sets the vertical DPI of the image.
type FixedImageSize ¶
type FixedImageSize struct {
ImageSize
}
Represents an image size with fixed dimensions.
func NewFixedImageSize ¶
func NewFixedImageSize() *FixedImageSize
Initializes a new instance of FixedImageSize and sets the image size type to Fixed.
func (*FixedImageSize) SetHeight ¶
func (p *FixedImageSize) SetHeight(value int)
Sets the height of the image.
func (*FixedImageSize) SetUnit ¶
func (p *FixedImageSize) SetUnit(value ImageSizeUnit)
Sets the unit of measurement `ImageSizeUnit` for the width and height.
func (*FixedImageSize) SetWidth ¶
func (p *FixedImageSize) SetWidth(value int)
Sets the width of the image.
func (*FixedImageSize) Unit ¶
func (p *FixedImageSize) Unit() ImageSizeUnit
Gets the unit of measurement `ImageSizeUnit` for the width and height.
type GifImageFormat ¶
type GifImageFormat struct {
ImageFormat
}
Represents GIF image format with dithering properties.
func NewGifImageFormat ¶
func NewGifImageFormat() *GifImageFormat
Initializes a new instance of the GifImageFormat class and sets the image format type to GIF.
func (*GifImageFormat) GetDitheringAlgorithm ¶
func (gif *GifImageFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm.
func (*GifImageFormat) GetDitheringPercent ¶
func (gif *GifImageFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage.
func (*GifImageFormat) SetDitheringAlgorithm ¶
func (gif *GifImageFormat) SetDitheringAlgorithm(value DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm.
func (*GifImageFormat) SetDitheringPercent ¶
func (gif *GifImageFormat) SetDitheringPercent(value int)
SetDitheringPercent sets the dithering percentage.
type Image ¶
type Image struct { PageNumber string `json:"pageNumber"` Data string `json:"data"` BilledPages int `json:"billedPages"` Width int `json:"width"` Height int `json:"height"` }
Image represents an individual image in the PdfImageResponse
type ImageFormat ¶
type ImageFormat struct { Type ImageFormatType // contains filtered or unexported fields }
Base class for image formats.
func NewImageFormat ¶
func NewImageFormat(imageFormatType ImageFormatType) *ImageFormat
Initializes a new instance of the ImageFormat class with the specified type.
func (*ImageFormat) MarshalJSON ¶
func (p *ImageFormat) MarshalJSON() ([]byte, error)
type ImageFormatType ¶
type ImageFormatType string
Enum representing supported image formats.
const ( // JPEG image format. JPEG ImageFormatType = "Jpeg" // GIF image format. GIF ImageFormatType = "Gif" // BMP image format. BMP ImageFormatType = "Bmp" // PNG image format. PNG ImageFormatType = "Png" // TIFF image format. TIFF ImageFormatType = "Tiff" )
type ImageSize ¶
type ImageSize struct { Type ImageSizeType `json:"type,omitempty"` // contains filtered or unexported fields }
func (*ImageSize) MarshalJSON ¶
type ImageSizeType ¶
type ImageSizeType string
Specifies the type of image size.
const ( // Dpi image size type. Dpi ImageSizeType = "Dpi" // Fixed image size type. Fixed ImageSizeType = "Fixed" // Max image size type. Max ImageSizeType = "Max" // Percentage image size type. Percentage ImageSizeType = "Percentage" )
type ImageSizeUnit ¶
type ImageSizeUnit string
Specifies the unit of measurement for image size.
const ( // Millimeter unit of measurement. Millimeter ImageSizeUnit = "Millimeter" // Inch unit of measurement. Inch ImageSizeUnit = "Inch" // Point unit of measurement. Point ImageSizeUnit = "Point" )
type JpegImageFormat ¶
type JpegImageFormat struct {
ImageFormat
}
JpegImageFormat represents JPEG image format with quality.
func NewJpegImageFormat ¶
func NewJpegImageFormat() *JpegImageFormat
Initializes a new instance of the JpegImageFormat class.
func (*JpegImageFormat) GetQuality ¶
func (j *JpegImageFormat) GetQuality() int
GetQuality returns the quality of the JPEG image.
func (*JpegImageFormat) SetQuality ¶
func (j *JpegImageFormat) SetQuality(quality int)
SetQuality sets the quality of the JPEG image.
type JsonResponse ¶
type JsonResponse struct { Response // contains filtered or unexported fields }
Represents the base class for json response.
func (*JsonResponse) ClientError ¶
func (r *JsonResponse) ClientError() error
func (*JsonResponse) ErrorMessage ¶
func (r *JsonResponse) ErrorMessage() string
Gets the error message.
func (*JsonResponse) IsSuccessful ¶
func (r *JsonResponse) IsSuccessful() bool
Gets the boolean, indicating the response's status.
func (*JsonResponse) SetStatusMessage ¶
func (r *JsonResponse) SetStatusMessage(statusMessage string)
type MaxImageSize ¶
type MaxImageSize struct {
ImageSize
}
MaxImageSize represents an image size that fits within a specified maximum width and height.
func NewMaxImageSize ¶
func NewMaxImageSize() *MaxImageSize
Initializes a new instance of the MaxImageSize class.
func (*MaxImageSize) GetMaxHeight ¶
func (m *MaxImageSize) GetMaxHeight() int
GetMaxHeight returns the maximum height of the image.
func (*MaxImageSize) GetMaxWidth ¶
func (m *MaxImageSize) GetMaxWidth() int
GetMaxWidth returns the maximum width of the image.
func (*MaxImageSize) GetUnit ¶
func (m *MaxImageSize) GetUnit() ImageSizeUnit
GetUnit returns the unit of measurement `ImageSizeUnit` for the maximum width and height.
func (*MaxImageSize) SetMaxHeight ¶
func (m *MaxImageSize) SetMaxHeight(value int)
SetMaxHeight sets the maximum height of the image.
func (*MaxImageSize) SetMaxWidth ¶
func (m *MaxImageSize) SetMaxWidth(value int)
SetMaxWidth sets the maximum width of the image.
func (*MaxImageSize) SetUnit ¶
func (m *MaxImageSize) SetUnit(value ImageSizeUnit)
SetUnit sets the unit of measurement `ImageSizeUnit` for the maximum width and height.
type PdfImage ¶
type PdfImage struct { endpoint.Endpoint // Gets or sets the starting page number for rasterization. StartPageNumber int `json:"startPageNumber,omitempty"` // Gets or sets the number of pages to rasterize. PageCount int `json:"pageCount,omitempty"` // Gets or sets the image format for rasterization. ImageFormat ImageFormat `json:"imageFormat,omitempty"` // Gets or sets the size of the rasterized images. ImageSize ImageSize `json:"imageSize,omitempty"` // contains filtered or unexported fields }
PdfImage represents a PDF Rasterizing endpoint that converts PDF to image.
func NewPdfImage ¶
func NewPdfImage(resource resource.PdfResource) *PdfImage
Initializes a new instance of the PdfImage class with the specified PDF resource.
func (*PdfImage) EndpointName ¶
func (*PdfImage) Process ¶
func (p *PdfImage) Process() <-chan PdfImageResponse
type PdfImageResponse ¶
type PdfImageResponse struct { ImageFormat string `json:"imageFormat"` Images []Image `json:"images"` ContentType string `json:"contentType"` HorizontalDpi int `json:"horizontalDpi"` VerticalDpi int `json:"verticalDpi"` // contains filtered or unexported fields }
PdfImageResponse represents the JSON structure in Go
func NewPdfImageResponse ¶
func NewPdfImageResponse() *PdfImageResponse
Initializes a new instance of the PdfImageResponse class.
func (*PdfImageResponse) ClientError ¶
func (r *PdfImageResponse) ClientError() error
Gets the error json.
func (*PdfImageResponse) ErrorJson ¶
func (r *PdfImageResponse) ErrorJson() string
Gets the error json.
func (*PdfImageResponse) ErrorMessage ¶
func (r *PdfImageResponse) ErrorMessage() string
Gets the error message.
func (*PdfImageResponse) IsSuccessful ¶
func (r *PdfImageResponse) IsSuccessful() bool
Gets the boolean, indicating the response's status.
func (*PdfImageResponse) StatusCode ¶
func (r *PdfImageResponse) StatusCode() int
Gets the status code.
type PercentageImageSize ¶
type PercentageImageSize struct {
ImageSize
}
Represents an image size defined by Percentage scaling.
func NewPercentageImageSize ¶
func NewPercentageImageSize() *PercentageImageSize
Initializes a new instance of the `PercentageImageSize` class and sets the image size type to Percentage.
func (*PercentageImageSize) GetHorizontalPercentage ¶
func (p *PercentageImageSize) GetHorizontalPercentage() int
GetHorizontalPercentage returns the horizontal scaling percentage.
func (*PercentageImageSize) GetType ¶
func (p *PercentageImageSize) GetType() ImageSizeType
GetType returns the type of the image size.
func (*PercentageImageSize) GetVerticalPercentage ¶
func (p *PercentageImageSize) GetVerticalPercentage() int
GetVerticalPercentage returns the vertical scaling percentage.
func (*PercentageImageSize) SetHorizontalPercentage ¶
func (p *PercentageImageSize) SetHorizontalPercentage(value int)
SetHorizontalPercentage sets the horizontal scaling percentage.
func (*PercentageImageSize) SetVerticalPercentage ¶
func (p *PercentageImageSize) SetVerticalPercentage(value int)
SetVerticalPercentage sets the vertical scaling percentage.
type PngColorFormat ¶
type PngColorFormat struct {
ColorFormat
}
Base class for Png color formats, used for RGB, RGBA, and Grayscale color formats.
func NewPngColorFormat ¶
func NewPngColorFormat(colorFormatType ColorFormatType) *PngColorFormat
Initializes a new instance of the PngColorFormat class.
- @param {ColorFormatType} colorFormatType. The value of the barcode.
type PngImageFormat ¶
type PngImageFormat struct {
ImageFormat // Embedded struct ImageFormat
}
Represents PNG image format with color format.
func NewPngImageFormat ¶
func NewPngImageFormat() *PngImageFormat
Initializes a new instance of the PngImageFormat class.
func (*PngImageFormat) GetColorFormat ¶
func (p *PngImageFormat) GetColorFormat() ColorFormat
func (*PngImageFormat) SetColorFormat ¶
func (p *PngImageFormat) SetColorFormat(colorFormat ColorFormat)
SetColorFormat sets the color format for PNG images.
type PngIndexedColorFormat ¶
type PngIndexedColorFormat struct {
PngColorFormat
}
Represents indexed color format for PNG.
func NewPngIndexedColorFormat ¶
func NewPngIndexedColorFormat() *PngIndexedColorFormat
Initializes a new instance of the PngIndexedColorFormat class with indexed color format type.
func (*PngIndexedColorFormat) GetDitheringAlgorithm ¶
func (p *PngIndexedColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm for PNG images.
func (*PngIndexedColorFormat) GetDitheringPercent ¶
func (p *PngIndexedColorFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage for PNG images.
func (*PngIndexedColorFormat) GetQuantizationAlgorithm ¶
func (p *PngIndexedColorFormat) GetQuantizationAlgorithm() QuantizationAlgorithm
GetQuantizationAlgorithm returns the quantization algorithm for PNG images.
func (*PngIndexedColorFormat) SetDitheringAlgorithm ¶
func (p *PngIndexedColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm for PNG images.
func (*PngIndexedColorFormat) SetDitheringPercent ¶
func (p *PngIndexedColorFormat) SetDitheringPercent(percent int)
SetDitheringPercent sets the dithering percentage for PNG images.
func (*PngIndexedColorFormat) SetQuantizationAlgorithm ¶
func (p *PngIndexedColorFormat) SetQuantizationAlgorithm(algorithm QuantizationAlgorithm)
SetQuantizationAlgorithm sets the quantization algorithm for PNG images.
type PngMonochromeColorFormat ¶
type PngMonochromeColorFormat struct {
PngColorFormat
}
Represents monochrome color format for PNG with black threshold.
func NewPngMonochromeColorFormat ¶
func NewPngMonochromeColorFormat() *PngMonochromeColorFormat
Initializes a new instance of the PngMonochromeColorFormat class with monochrome color format type.
func (*PngMonochromeColorFormat) GetBlackThreshold ¶
func (p *PngMonochromeColorFormat) GetBlackThreshold() int
GetBlackThreshold returns the black threshold for monochrome PNG images.
func (*PngMonochromeColorFormat) GetDitheringAlgorithm ¶
func (p *PngMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm for PNG images.
func (*PngMonochromeColorFormat) GetDitheringPercent ¶
func (p *PngMonochromeColorFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage for PNG images.
func (*PngMonochromeColorFormat) SetBlackThreshold ¶
func (p *PngMonochromeColorFormat) SetBlackThreshold(threshold int)
func (*PngMonochromeColorFormat) SetDitheringAlgorithm ¶
func (p *PngMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm for PNG images.
func (*PngMonochromeColorFormat) SetDitheringPercent ¶
func (p *PngMonochromeColorFormat) SetDitheringPercent(percent int)
SetDitheringPercent sets the dithering percentage for PNG images.
type QuantizationAlgorithm ¶
type QuantizationAlgorithm string
Enum representing quantization algorithms.
const ( // Octree quantization algorithm. Octree QuantizationAlgorithm = "Octree" // WebSafe quantization algorithm. WebSafe QuantizationAlgorithm = "WebSafe" // Werner quantization algorithm. Werner QuantizationAlgorithm = "Werner" // WU quantization algorithm. WU QuantizationAlgorithm = "WU" )
type TiffColorFormat ¶
type TiffColorFormat struct {
ColorFormat
}
Base class for Tiff color formats, used for RGB, RGBA, and Grayscale color formats.
func NewTiffColorFormat ¶
func NewTiffColorFormat(colorFormatType ColorFormatType) *TiffColorFormat
Initializes a new instance of the TiffColorFormat class.
- @param {ColorFormatType} colorFormatType. The value of the barcode.
type TiffImageFormat ¶
type TiffImageFormat struct {
ImageFormat // Embedded struct ImageFormat
}
Represents TIFF image format with color format.
func NewTiffImageFormat ¶
func NewTiffImageFormat() *TiffImageFormat
NewTiffImageFormat initializes a new instance of the TiffImageFormat class.
func (*TiffImageFormat) GetColorFormat ¶
func (t *TiffImageFormat) GetColorFormat() ColorFormat
GetColorFormat returns the color format for TIFF images.
func (*TiffImageFormat) GetMultiPage ¶
func (t *TiffImageFormat) GetMultiPage() bool
GetMultiPage returns the multi-page support flag for TIFF images.
func (*TiffImageFormat) SetColorFormat ¶
func (t *TiffImageFormat) SetColorFormat(colorFormat ColorFormat)
SetColorFormat sets the color format for TIFF images.
func (*TiffImageFormat) SetMultiPage ¶
func (t *TiffImageFormat) SetMultiPage(multiPage bool)
type TiffIndexedColorFormat ¶
type TiffIndexedColorFormat struct {
TiffColorFormat
}
Represents indexed color format for TIFF.
func NewTiffIndexedColorFormat ¶
func NewTiffIndexedColorFormat() *TiffIndexedColorFormat
Initializes a new instance of the TiffIndexedColorFormat class with indexed color format type.
func (*TiffIndexedColorFormat) GetDitheringAlgorithm ¶
func (t *TiffIndexedColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm for TIFF images.
func (*TiffIndexedColorFormat) GetDitheringPercent ¶
func (t *TiffIndexedColorFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage for TIFF images.
func (*TiffIndexedColorFormat) GetQuantizationAlgorithm ¶
func (t *TiffIndexedColorFormat) GetQuantizationAlgorithm() QuantizationAlgorithm
GetQuantizationAlgorithm returns the quantization algorithm for TIFF images.
func (*TiffIndexedColorFormat) SetDitheringAlgorithm ¶
func (t *TiffIndexedColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm for TIFF images.
func (*TiffIndexedColorFormat) SetDitheringPercent ¶
func (t *TiffIndexedColorFormat) SetDitheringPercent(percent int)
SetDitheringPercent sets the dithering percentage for TIFF images.
func (*TiffIndexedColorFormat) SetQuantizationAlgorithm ¶
func (t *TiffIndexedColorFormat) SetQuantizationAlgorithm(algorithm QuantizationAlgorithm)
SetQuantizationAlgorithm sets the quantization algorithm for TIFF images.
type TiffMonochromeColorFormat ¶
type TiffMonochromeColorFormat struct {
TiffColorFormat
}
Represents monochrome color format for TIFF with black threshold and compression type.
func NewTiffMonochromeColorFormat ¶
func NewTiffMonochromeColorFormat() *TiffMonochromeColorFormat
Initializes a new instance of the TiffMonochromeColorFormat class with monochrome color format type.
func (*TiffMonochromeColorFormat) GetBlackThreshold ¶
func (t *TiffMonochromeColorFormat) GetBlackThreshold() int
GetBlackThreshold returns the black threshold for monochrome TIFF images.
func (*TiffMonochromeColorFormat) GetCompressionType ¶
func (t *TiffMonochromeColorFormat) GetCompressionType() CompressionType
GetCompressionType returns the compression type for monochrome TIFF images.
func (*TiffMonochromeColorFormat) GetDitheringAlgorithm ¶
func (t *TiffMonochromeColorFormat) GetDitheringAlgorithm() DitheringAlgorithm
GetDitheringAlgorithm returns the dithering algorithm for TIFF images.
func (*TiffMonochromeColorFormat) GetDitheringPercent ¶
func (t *TiffMonochromeColorFormat) GetDitheringPercent() int
GetDitheringPercent returns the dithering percentage for TIFF images.
func (*TiffMonochromeColorFormat) SetBlackThreshold ¶
func (t *TiffMonochromeColorFormat) SetBlackThreshold(threshold int)
SetBlackThreshold sets the black threshold for monochrome TIFF images.
func (*TiffMonochromeColorFormat) SetCompressionType ¶
func (t *TiffMonochromeColorFormat) SetCompressionType(compression CompressionType)
SetCompressionType sets the compression type for monochrome TIFF images.
func (*TiffMonochromeColorFormat) SetDitheringAlgorithm ¶
func (t *TiffMonochromeColorFormat) SetDitheringAlgorithm(algorithm DitheringAlgorithm)
SetDitheringAlgorithm sets the dithering algorithm for TIFF images.
func (*TiffMonochromeColorFormat) SetDitheringPercent ¶
func (t *TiffMonochromeColorFormat) SetDitheringPercent(percent int)
SetDitheringPercent sets the dithering percentage for TIFF images.
Source Files
¶
- BmpColorFormat.go
- BmpImageFormat.go
- BmpMonochromeColorFormat.go
- ColorFormat.go
- ColorFormatType.go
- CompressionType.go
- DitheringAlgorithm.go
- DpiImageSize.go
- FixedImageSize.go
- GifImageFormat.go
- ImageFormat.go
- ImageFormatType.go
- ImageSize.go
- ImageSizeType.go
- ImageSizeUnit.go
- JpegImageFormat.go
- JsonResponse.go
- MaxImageSize.go
- PdfImage.go
- PdfImageResponse.go
- PercentageImageSize.go
- PngColorFormat.go
- PngImageFormat.go
- PngIndexedColorFormat.go
- PngMonochromeColorFormat.go
- QuantizationAlgorithm.go
- TiffColorFormat.go
- TiffImageFormat.go
- TiffIndexedColorFormat.go
- TiffMonochromeColorFormat.go
- response.go