Click or drag to resize

HHelpersAssetHandling Class

Specifically contains helper methods for use in creating and managing XNA assets.
Inheritance Hierarchy
SystemObject
  com.tiberiumfusion.ttplugins.HarmonyPluginsHHelpersAssetHandling

Namespace:  com.tiberiumfusion.ttplugins.HarmonyPlugins
Assembly:  TTPlugins (in TTPlugins.dll) Version: 1.2.0.1 (1.2.0.1)
Syntax
public static class AssetHandling
Request Example View Source

The HHelpersAssetHandling type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateTexture2DFromImageBytes(Byte, GraphicsDevice, Boolean, NullableVector4)
Creates a new Texture2D from a byte[] which constitutes a JPG, PNG, or GIF image (i.e. NOT an XNB file). This helper is particularly useful when the plugin Security Level is set to Level 3 or higher (which disallows use of System.IO).
Public methodStatic memberCreateTexture2DFromImageBytes(Byte, GraphicsDevice, Int32, Int32, Boolean, Boolean, NullableVector4)
Creates a new Texture2D from a byte[] which constitutes a JPG, PNG, or GIF image (i.e. NOT an XNB file). This helper is particularly useful when the plugin Security Level is set to Level 3 or higher (which disallows use of System.IO).
Public methodStatic memberGammaCorrectTexture
Performs gamma correction on a texture. All pixels will be raised to 1/gammaCorrection power, where XYZW in the Vector4 maps to RGBA in the texture.
Public methodStatic memberPremultiplyTexture
Premultiplies the color channels of a texture. Should only be used on non-premultiplied textures.
Top
See Also