Image

Native image.

Modulerequire("yue.gui")
TypeClass

Class methods

createfrompath(path)

Create an image by reading from path.

Parameters

Return

Image

createfrombuffer(buffer, scalefactor)

Create an image from buffer in memory, with scale_factor.

Parameters

Return

Image

Methods

getsize()

Return image's size in DIP.

Return

SizeF

getscalefactor()

Return image's scale factor.

Return

number