png

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package png implements the builder for PNG files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PNGBuilder

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

PNGBuilder struct.

func (*PNGBuilder) GenerateFile

func (p *PNGBuilder) GenerateFile(page *rod.Page) ([]byte, error)

GenerateFile converts a rod Page instance to a PNG file.

func (*PNGBuilder) SetFullPage

func (p *PNGBuilder) SetFullPage(fullPage bool) generator.Generator

SetFullPage sets the pages to be converted. If false, only the first page is selected.

Jump to

Keyboard shortcuts

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