openvg

package
v0.0.0-...-9d62b2b Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageQualityNonantialiased = C.VG_IMAGE_QUALITY_NONANTIALIASED
	ImageQualityFaster         = C.VG_IMAGE_QUALITY_FASTER
	ImageQualityBetter         = C.VG_IMAGE_QUALITY_BETTER
)
View Source
const (
	ImageFormatSrgbx8888 = ImageFormat(C.VG_sRGBX_8888)
)

Variables

This section is empty.

Functions

func Clear

func Clear(x, y, w, h int)

func SetClearColor

func SetClearColor()

Types

type Image

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

func CreateImage

func CreateImage(format ImageFormat, width, height int, quality []ImageQuality) (Image, error)

func (Image) Destroy

func (img Image) Destroy() error

Destroy wraps vgDestroyImage.

func (Image) Draw

func (img Image) Draw()

Draw wraps vgDrawImage.

func (Image) Write

func (img Image) Write(p unsafe.Pointer, stride int, fmt ImageFormat, x, y, width, height int)

Write calls vgImageSubData.

type ImageFormat

type ImageFormat C.VGImageFormat

type ImageQuality

type ImageQuality C.VGImageQuality

Jump to

Keyboard shortcuts

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