C# Class ThemeEditor.WPF.Themes.TextureViewModel

Inheritance: ViewModelBase
Datei anzeigen Open project: usagirei/3DS-Theme-Editor Class Usage Examples

Private Properties

Property Type Description
DecodeTexture System.Windows.Media.Imaging.BitmapSource
GeneratePalette IEnumerable
GscToAlpha byte[]

Public Methods

Method Description
ClearTexture ( ) : void
Dispose ( ) : void
EncodeTexture ( System.Windows.Media.Imaging.BitmapSource bitmap, RawTexture targetFormat ) : void
Invalidate ( ) : void
TextureViewModel ( RawTexture model, string tag ) : System.Collections.Generic

Private Methods

Method Description
DecodeTexture ( RawTexture model ) : System.Windows.Media.Imaging.BitmapSource
GeneratePalette ( ) : IEnumerable
GscToAlpha ( byte rgbData ) : byte[]

Method Details

ClearTexture() public method

public ClearTexture ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

EncodeTexture() public method

public EncodeTexture ( System.Windows.Media.Imaging.BitmapSource bitmap, RawTexture targetFormat ) : void
bitmap System.Windows.Media.Imaging.BitmapSource
targetFormat ThemeEditor.Common.Graphics.RawTexture
return void

Invalidate() public method

public Invalidate ( ) : void
return void

TextureViewModel() public method

public TextureViewModel ( RawTexture model, string tag ) : System.Collections.Generic
model ThemeEditor.Common.Graphics.RawTexture
tag string
return System.Collections.Generic