Show / Hide Table of Contents

Class MyImageHeaderUtils

Inheritance
System.Object
MyImageHeaderUtils
Namespace: VRage.Library.Utils
Assembly: VRage.Library.dll
Syntax
public static class MyImageHeaderUtils : Object

Methods

Read_DDS_HeaderData(String, out MyImageHeaderUtils.DDS_HEADER)

Reads the header of standard DDS texture without reading the rest of its contents. Checks for magic constant.

Declaration
public static bool Read_DDS_HeaderData(string filePath, out MyImageHeaderUtils.DDS_HEADER header)
Parameters
Type Name Description
System.String filePath

Path to dds.

MyImageHeaderUtils.DDS_HEADER header

Output header

Returns
Type Description
System.Boolean

Success flag.

Read_PNG_Dimensions(String, out Int32, out Int32)

Reads the dimensions from PNG formated texture. Checks for magic constant.

Declaration
public static bool Read_PNG_Dimensions(string filePath, out int width, out int height)
Parameters
Type Name Description
System.String filePath

Path to png.

System.Int32 width
System.Int32 height
Returns
Type Description
System.Boolean

Success flag.

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾