cmd

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodePdfiumUnknownError  = 1
	ExitCodePdfiumFileError     = 2
	ExitCodePdfiumBadFileError  = 3
	ExitCodePdfiumPasswordError = 4
	ExitCodePdfiumSecurityError = 5
	ExitCodePdfiumPageError     = 6
	ExitCodePdfiumError         = 7
	ExitCodeInvalidArguments    = 8
	ExitCodeInvalidInput        = 9
	ExitCodeInvalidOutput       = 10
	ExitCodeInvalidPageRange    = 11
	ExitCodeExperimental        = 12
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

type BGR added in v0.1.0

type BGR struct {
	// Pix holds the image's pixels, in B, G, R order. The pixel at
	// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3].
	Pix []uint8
	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
	Stride int
	// Rect is the image's bounds.
	Rect image.Rectangle
}

BGR is an in-memory image whose At method returns color.RGBA values.

func (*BGR) At added in v0.1.0

func (p *BGR) At(x, y int) color.Color

func (*BGR) Bounds added in v0.1.0

func (p *BGR) Bounds() image.Rectangle

func (*BGR) ColorModel added in v0.1.0

func (p *BGR) ColorModel() color.Model

func (*BGR) PixOffset added in v0.1.0

func (p *BGR) PixOffset(x, y int) int

PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).

func (*BGR) RGBAAt added in v0.1.0

func (p *BGR) RGBAAt(x, y int) color.RGBA

type BGRA added in v0.1.0

type BGRA struct {
	// Pix holds the image's pixels, in B, G, R, A order. The pixel at
	// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*4].
	Pix []uint8
	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
	Stride int
	// Rect is the image's bounds.
	Rect image.Rectangle
}

BGRA is an in-memory image whose At method returns color.BGRA values.

func (*BGRA) At added in v0.1.0

func (p *BGRA) At(x, y int) color.Color

func (*BGRA) Bounds added in v0.1.0

func (p *BGRA) Bounds() image.Rectangle

func (*BGRA) ColorModel added in v0.1.0

func (p *BGRA) ColorModel() color.Model

func (*BGRA) PixOffset added in v0.1.0

func (p *BGRA) PixOffset(x, y int) int

PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).

func (*BGRA) RGBAAt added in v0.1.0

func (p *BGRA) RGBAAt(x, y int) color.RGBA

type BGRX added in v0.1.0

type BGRX struct {
	// Pix holds the image's pixels, in B, G, R, X order. The pixel at
	// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*4].
	Pix []uint8
	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
	Stride int
	// Rect is the image's bounds.
	Rect image.Rectangle
}

BGRX is an in-memory image whose At method returns color.RGBA values.

func (*BGRX) At added in v0.1.0

func (p *BGRX) At(x, y int) color.Color

func (*BGRX) Bounds added in v0.1.0

func (p *BGRX) Bounds() image.Rectangle

func (*BGRX) ColorModel added in v0.1.0

func (p *BGRX) ColorModel() color.Model

func (*BGRX) PixOffset added in v0.1.0

func (p *BGRX) PixOffset(x, y int) int

PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).

func (*BGRX) RGBAAt added in v0.1.0

func (p *BGRX) RGBAAt(x, y int) color.RGBA

type ExitCodeError added in v0.4.0

type ExitCodeError struct {
	// contains filtered or unexported fields
}

func (*ExitCodeError) Error added in v0.4.0

func (e *ExitCodeError) Error() string

func (*ExitCodeError) ExitCode added in v0.4.0

func (e *ExitCodeError) ExitCode() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL