C# Class Reign.Video.Image

Inheritance: ILoadable
Show file Open project: reignstudios/ReignSDK

Public Properties

Property Type Description
Mipmaps Mipmap[]

Public Methods

Method Description
CalculatePixelByteSize ( ) : int
CalculatePixelByteSize ( SurfaceFormats surfaceFormat, int width, int height ) : int
Image ( ) : System.Threading.Tasks
New ( string filename, bool flip, Loader loadedCallback ) : Image
Save ( byte inData, int width, int height, Stream outStream, ImageFormats imageFormat, ImageSavedCallbackMethod imageSavedCallback ) : void
UpdateLoad ( ) : bool

Protected Methods

Method Description
init ( Stream stream, bool flip, Loader loadedCallback ) : void

Method Details

CalculatePixelByteSize() public method

public CalculatePixelByteSize ( ) : int
return int

CalculatePixelByteSize() public static method

public static CalculatePixelByteSize ( SurfaceFormats surfaceFormat, int width, int height ) : int
surfaceFormat SurfaceFormats
width int
height int
return int

Image() public method

public Image ( ) : System.Threading.Tasks
return System.Threading.Tasks

New() public static method

public static New ( string filename, bool flip, Loader loadedCallback ) : Image
filename string
flip bool
loadedCallback Reign.Core.Loader
return Image

Save() public static method

public static Save ( byte inData, int width, int height, Stream outStream, ImageFormats imageFormat, ImageSavedCallbackMethod imageSavedCallback ) : void
inData byte
width int
height int
outStream Stream
imageFormat ImageFormats
imageSavedCallback ImageSavedCallbackMethod
return void

UpdateLoad() public method

public UpdateLoad ( ) : bool
return bool

init() protected abstract method

protected abstract init ( Stream stream, bool flip, Loader loadedCallback ) : void
stream Stream
flip bool
loadedCallback Reign.Core.Loader
return void

Property Details

Mipmaps public property

public Mipmap[] Mipmaps
return Mipmap[]