HHelpersAssetHandling Class |
Namespace: com.tiberiumfusion.ttplugins.HarmonyPlugins
The HHelpersAssetHandling type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CreateTexture2DFromImageBytes(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).
|
![]() ![]() | CreateTexture2DFromImageBytes(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).
|
![]() ![]() | GammaCorrectTexture |
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.
|
![]() ![]() | PremultiplyTexture |
Premultiplies the color channels of a texture. Should only be used on non-premultiplied textures.
|