PowerUI.PictureFormat Class Reference

Detailed Description

Represents the default "picture" format. Png, jpeg etc are handled with this.

Inheritance diagram for PowerUI.PictureFormat:
PowerUI.ImageFormat PowerUI.CameraFormat

Public Member Functions

 PictureFormat ()
 
 PictureFormat (Texture image)
 
override string[] GetNames ()
 The set of lowercase file types that this format will handle. More...
 
override ImageFormat Instance ()
 Creates an instance of this format. More...
 
override Material GetImageMaterial (ShaderSet shaders)
 A single-frame image material. Used for e.g. videos and animations. More...
 
override bool LoadFromAsset (UnityEngine.Object asset, ImagePackage package)
 Attempt to load the image from a Unity resource. More...
 
override bool LoadData (byte[] data, ImagePackage package)
 Loads the raw block of data into an object of this format. More...
 
override int GetAtlasID ()
 Get the identifier used for this content on an atlas. More...
 
override bool DrawToAtlas (TextureAtlas atlas, AtlasLocation location)
 Draws this image to the given atlas. More...
 
- Public Member Functions inherited from PowerUI.ImageFormat
Material GetImageMaterial ()
 A single-frame image material using the standard UI shader set. Used for e.g. videos and animations. More...
 
virtual bool InternallyCached (Location path, ImagePackage package)
 Some formats may cache their result internally. This checks and updates if it has. More...
 
virtual void OnLayout (RenderableData context, LayoutBox box, out float width, out float height)
 Called when the host element is drawing. More...
 
virtual void ClearX ()
 Resets this image format container. More...
 
virtual void GoingOnDisplay (Css.RenderableData context)
 Called when this image is going to be displayed. More...
 
virtual void GoingOffDisplay ()
 Called when this image is going to stop being displayed. More...
 

Public Attributes

Texture Image
 The image texture retrieved. More...
 
Material IsolatedMaterial
 An isolated material for this image. More...
 

Properties

override bool Isolate [get]
 Should this image be isolated - i.e. off atlas. More...
 
override FilterMode FilterMode [get, set]
 
override int Height [get]
 
override int Width [get]
 
override bool Loaded [get]
 
- Properties inherited from PowerUI.ImageFormat
virtual int Height [get]
 The height of the image. More...
 
virtual int Width [get]
 The width of the image. More...
 
virtual FilterMode FilterMode [get, set]
 Get/set the filter mode. More...
 
virtual bool Loaded [get]
 Is this image loaded? More...
 
virtual bool Isolate [get]
 Should this image be isolated - i.e. off atlas. More...
 

Constructor & Destructor Documentation

PowerUI.PictureFormat.PictureFormat ( )
inline
PowerUI.PictureFormat.PictureFormat ( Texture  image)
inline

Member Function Documentation

override bool PowerUI.PictureFormat.DrawToAtlas ( TextureAtlas  atlas,
AtlasLocation  location 
)
inlinevirtual

Draws this image to the given atlas.

Reimplemented from PowerUI.ImageFormat.

override int PowerUI.PictureFormat.GetAtlasID ( )
inlinevirtual

Get the identifier used for this content on an atlas.

Reimplemented from PowerUI.ImageFormat.

override Material PowerUI.PictureFormat.GetImageMaterial ( ShaderSet  shaders)
inlinevirtual

A single-frame image material. Used for e.g. videos and animations.

Reimplemented from PowerUI.ImageFormat.

override string [] PowerUI.PictureFormat.GetNames ( )
inlinevirtual

The set of lowercase file types that this format will handle.

Reimplemented from PowerUI.ImageFormat.

override ImageFormat PowerUI.PictureFormat.Instance ( )
inlinevirtual

Creates an instance of this format.

Reimplemented from PowerUI.ImageFormat.

override bool PowerUI.PictureFormat.LoadData ( byte[]  data,
ImagePackage  package 
)
inlinevirtual

Loads the raw block of data into an object of this format.

Reimplemented from PowerUI.ImageFormat.

override bool PowerUI.PictureFormat.LoadFromAsset ( UnityEngine.Object  asset,
ImagePackage  package 
)
inlinevirtual

Attempt to load the image from a Unity resource.

Reimplemented from PowerUI.ImageFormat.

Member Data Documentation

Texture PowerUI.PictureFormat.Image

The image texture retrieved.

Material PowerUI.PictureFormat.IsolatedMaterial

An isolated material for this image.

Property Documentation

override FilterMode PowerUI.PictureFormat.FilterMode
getset
override int PowerUI.PictureFormat.Height
get
override bool PowerUI.PictureFormat.Isolate
get

Should this image be isolated - i.e. off atlas.

override bool PowerUI.PictureFormat.Loaded
get
override int PowerUI.PictureFormat.Width
get