Image

Native image.

Header#include "nativeui/gfx/image.h"
Namespacenamespace nu
Typeclass (RefCounted)

Constructors

Image(const base::FilePath& path)

Create an image by reading from path.

Parameters

Methods

SizeF GetSize() const

Return image's size in DIP.

Return

SizeF

float GetScaleFactor() const

Return image's scale factor.

Return

float

NativeImage GetNative() const

Return the native instance wrapped by the class.

Return

NativeImage