![]() |
Twilight Princess
Remastered version of the GameCube game
|
Inheritance diagram for GTXFile.TextureData:
Collaboration diagram for GTXFile.TextureData:Public Member Functions | |
| TextureData () | |
| override void | SetImageData (Bitmap bitmap, int ArrayLevel) |
| override byte[] | GetImageData (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
Public Member Functions inherited from STGenericTexture | |
| STGenericTexture () | |
| byte[] | GetImageData (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
| virtual byte[] | GetPaletteData () |
| List< Surface > | Get3DSurfaces (int IndexStart=0, bool GetAllSurfaces=true, int GetSurfaceAmount=1) |
| List< Surface > | GetSurfaces (int ArrayIndexStart=0, bool GetAllSurfaces=true, int GetSurfaceAmount=1) |
| void | SetImageData (Bitmap bitmap, int ArrayLevel) |
| void | CreateGenericTexture (uint width, uint height, List< Surface > surfaces, TEX_FORMAT format) |
| string | DebugInfo () |
| Gets a Bitmap given an array and mip index. | |
| uint | GenerateMipCount (int Width, int Height) |
| byte[] | GetBitmapData () |
| Bitmap | GetBitmapWithChannel () |
| Bitmap | GetBitmap (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
| Gets a Bitmap given an array and mip index. | |
| void | SaveBitmap (string path) |
| void | SaveDDS (string FileName, bool ExportSurfaceLevel=false, bool ExportMipMapLevel=false, int SurfaceLevel=0, int MipLevel=0) |
| uint | GenerateMipCount (uint Width, uint Height) |
| Bitmap | GetComponentBitmap (Bitmap image, bool ShowAlpha=true) |
Public Attributes | |
| SurfaceInfoParse | surface |
Public Attributes inherited from STGenericTexture | |
| ImageParameters | Parameters = new() |
| STSurfaceType | SurfaceType = STSurfaceType.Texture2D |
| PlatformSwizzle | PlatformSwizzle |
| The swizzle method to use when decoding or encoding back a texture. | |
| STChannelType | RedChannel = STChannelType.Red |
| STChannelType | GreenChannel = STChannelType.Green |
| STChannelType | BlueChannel = STChannelType.Blue |
| STChannelType | AlphaChannel = STChannelType.Alpha |
Properties | |
| override TEX_FORMAT[] | SupportedFormats [get] |
| override bool | CanEdit = true [get, set] |
Properties inherited from STGenericTexture | |
| bool | IsCubemap [get] |
| bool | IsSwizzled = true [get, set] |
| bool | IsEdited = false [get, set] |
| Is the texture edited or not. Used for the image editor for saving changes. | |
| EditedBitmap[] | EditedImages [get, set] |
| An array of EditedBitmap from the image editor to be saved back. | |
| bool | CanEdit [get, set] |
| long | DataSizeInBytes [get] |
| The total length of all the bytes given from GetImageData. | |
| uint | ArrayCount [get, set] |
| The total amount of surfaces for the texture. | |
| uint | MipCount [get, set] |
| The total amount of mipmaps for the texture. | |
| uint | Width [get, set] |
| The width of the image in pixels. | |
| uint | Height [get, set] |
| The height of the image in pixels. | |
| uint | Depth [get, set] |
| The depth of the image in pixels. Used for 3D types. | |
| TEX_FORMAT | Format = TEX_FORMAT.R8G8B8A8_UNORM [get, set] |
| The TEX_FORMAT Format of the image. | |
| TEX_FORMAT[] | SupportedFormats [get] |
| The PALETTE_FORMAT Format of the image. | |
| Properties | GenericProperties [get] |
Private Member Functions | |
| void | ApplySurface (GX2Surface NewSurface) |
| STChannelType | SetChannel (byte compSel) |
| void | SetChannelComponents () |
Additional Inherited Members | |
Static Public Member Functions inherited from STGenericTexture | |
| static bool | IsCompressed (TEX_FORMAT Format) |
| static bool | IsCompressed2 (TEX_FORMAT Format) |
| static uint | GetBytesPerPixel (TEX_FORMAT Format) |
| static uint | GetBlockHeight (TEX_FORMAT Format) |
| static uint | GetBlockWidth (TEX_FORMAT Format) |
| static uint | GetBlockDepth (TEX_FORMAT Format) |
| static byte[] | DecodeBlock (byte[] data, uint Width, uint Height, TEX_FORMAT Format, byte[] paletteData, ImageParameters parameters, PALETTE_FORMAT PaletteFormat=PALETTE_FORMAT.None, PlatformSwizzle PlatformSwizzle=PlatformSwizzle.None) |
| Decodes a byte array of image data given the source image in bytes, width, height, and DXGI format. | |
| static bool | IsAtscFormat (TEX_FORMAT Format) |
| static STChannelType[] | SetChannelsByFormat (TEX_FORMAT Format) |
| static int | GenerateTotalMipCount (uint Width, uint Height) |
| static string | SetNameFromPath (string path) |
| static byte[] | ConvertBgraToRgba (byte[] bytes) |
| GTXFile.TextureData.TextureData | ( | ) |
|
private |
| override byte[] GTXFile.TextureData.GetImageData | ( | int | ArrayLevel = 0, |
| int | MipLevel = 0, | ||
| int | DepthLevel = 0 ) |
|
private |
|
private |
| override void GTXFile.TextureData.SetImageData | ( | Bitmap | bitmap, |
| int | ArrayLevel ) |
| SurfaceInfoParse GTXFile.TextureData.surface |
|
getset |
|
get |