imagepb

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mediaentity_image_v0_image_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dimensions

type Dimensions struct {
	Width  int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Dimensions are the width and height of an image.

func NewDimensions

func NewDimensions(d image.Dimensions) *Dimensions

func (*Dimensions) AsDimensions

func (d *Dimensions) AsDimensions() image.Dimensions

func (*Dimensions) Descriptor deprecated

func (*Dimensions) Descriptor() ([]byte, []int)

Deprecated: Use Dimensions.ProtoReflect.Descriptor instead.

func (*Dimensions) GetHeight

func (x *Dimensions) GetHeight() int64

func (*Dimensions) GetWidth

func (x *Dimensions) GetWidth() int64

func (*Dimensions) ProtoMessage

func (*Dimensions) ProtoMessage()

func (*Dimensions) ProtoReflect

func (x *Dimensions) ProtoReflect() protoreflect.Message

func (*Dimensions) Reset

func (x *Dimensions) Reset()

func (*Dimensions) String

func (x *Dimensions) String() string

type Image

type Image struct {
	Storage      *v0.Storage       `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
	Filename     string            `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	Filesize     int64             `protobuf:"varint,3,opt,name=filesize,proto3" json:"filesize,omitempty"`
	Dimensions   *Dimensions       `protobuf:"bytes,4,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
	Names        map[string]string `` /* 151-byte string literal not displayed */
	Descriptions map[string]string `` /* 165-byte string literal not displayed */
	Tags         []string          `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

Image represents an image.

func New

func New(img image.Image) *Image

func (*Image) AsImage

func (img *Image) AsImage() image.Image

func (*Image) Descriptor deprecated

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetDescriptions

func (x *Image) GetDescriptions() map[string]string

func (*Image) GetDimensions

func (x *Image) GetDimensions() *Dimensions

func (*Image) GetFilename

func (x *Image) GetFilename() string

func (*Image) GetFilesize

func (x *Image) GetFilesize() int64

func (*Image) GetNames

func (x *Image) GetNames() map[string]string

func (*Image) GetStorage

func (x *Image) GetStorage() *v0.Storage

func (*Image) GetTags added in v0.0.11

func (x *Image) GetTags() []string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

Jump to

Keyboard shortcuts

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