My Project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ProGif.ImageResizer Class Reference

Public Member Functions

Texture2D ResizeTexture32_KeepRatio (Texture2D texOrigin, int width, int height)
 Resize the texture (keep ratio). GetPixels32/SetPixels32 is used for faster speed than GetPixels/SetPixels.
 
Texture2D ResizeTexture32 (Texture2D texOrigin, int width, int height)
 Resize the texture (keep ratio). GetPixels32/SetPixels32 is used for faster speed than GetPixels/SetPixels.
 
Texture2D ResizeTexture_KeepRatio (Texture2D texOrigin, int width, int height)
 Resize the texture (keep ratio). GetPixels/SetPixels is used for higher quality than GetPixels32/SetPixels32.
 
Texture2D ResizeTexture (Texture2D texOrigin, int width, int height)
 Resize the texture (keep ratio). GetPixels/SetPixels is used for higher quality than GetPixels32/SetPixels32.
 

Member Function Documentation

◆ ResizeTexture()

Texture2D ProGif.ImageResizer.ResizeTexture ( Texture2D  texOrigin,
int  width,
int  height 
)
inline

Resize the texture (keep ratio). GetPixels/SetPixels is used for higher quality than GetPixels32/SetPixels32.

Returns
The texture.
Parameters
texOriginOrigin texture.
widthWidth.
heightHeight.

◆ ResizeTexture32()

Texture2D ProGif.ImageResizer.ResizeTexture32 ( Texture2D  texOrigin,
int  width,
int  height 
)
inline

Resize the texture (keep ratio). GetPixels32/SetPixels32 is used for faster speed than GetPixels/SetPixels.

Returns
The texture.
Parameters
texOriginOrigin texture.
widthWidth.
heightHeight.

◆ ResizeTexture32_KeepRatio()

Texture2D ProGif.ImageResizer.ResizeTexture32_KeepRatio ( Texture2D  texOrigin,
int  width,
int  height 
)
inline

Resize the texture (keep ratio). GetPixels32/SetPixels32 is used for faster speed than GetPixels/SetPixels.

Returns
The texture.
Parameters
texOriginOrigin texture.
widthWidth.
heightHeight.

◆ ResizeTexture_KeepRatio()

Texture2D ProGif.ImageResizer.ResizeTexture_KeepRatio ( Texture2D  texOrigin,
int  width,
int  height 
)
inline

Resize the texture (keep ratio). GetPixels/SetPixels is used for higher quality than GetPixels32/SetPixels32.

Returns
The texture (keep ratio).
Parameters
texOriginOrigin texture.
widthWidth.
heightHeight.

The documentation for this class was generated from the following file: