GIFToWoWTexture/GIFConverter/TGASharpLib.cs
/// <summary>
/// Flip <see cref="TGA"/> directions, for more info see <see cref="TgaImgOrigin"/>.
/// </summary>
/// <param name="Horizontal">Flip horizontal.</param>
/// <param name="Vertical">Flip vertical.</param>
Flip  directions, for more info see .
Flip directions for more info see .
public void Flip(bool Horizontal = false, bool Vertical = false)
        {
            int NewOrigin = (int)Header.ImageSpec.ImageDescriptor.ImageOrigin;
            NewOrigin = NewOrigin ^ ((Vertical ? 0x20 : 0) | (Horizontal ? 0x10 : 0));
            Header.ImageSpec.ImageDescriptor.ImageOrigin = (TgaImgOrigin)NewOrigin;
        }
public void Flip ( bool Horizontal = false , bool Vertical = false ) { int NewOrigin = ( int ) Header . ImageSpec . ImageDescriptor . ImageOrigin ; NewOrigin = NewOrigin ^ ( ( Vertical ? 0x20 : 0 ) | ( Horizontal ? 0x10 : 0 ) ) ; Header . ImageSpec . ImageDescriptor . ImageOrigin = ( TgaImgOrigin ) NewOrigin ; }
Flip  directions, for more info see .
Flip directions for more info see .
Horizontal
bool
None
Vertical
bool
None