internal static unsafe AppleImageUtilsBaseAsyncTaskBlueprintProxy Invoke(Texture SourceImage, bool bWantColor, bool bUseGpu, float Scale, ETextureRotationDirection Rotate)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = SourceImage;
                *((bool *)(b + 8))   = bWantColor;
                *((bool *)(b + 9))   = bUseGpu;
                *((float *)(b + 12)) = Scale;
                *(b + 16)            = (byte)Rotate;
                Main.GetProcessEvent(AppleImageUtilsBaseAsyncTaskBlueprintProxy.DefaultObject, CreateProxyObjectForConvertToTIFF_ptr, new IntPtr(p));;
                return(*((IntPtr *)(b + 24)));
            }
        }
Beispiel #2
0
 ///<summary>
 ///Converts a image to an array of TIFF data in a background task
 ///@
 ///</summary>
 ///<remarks>
 ///param SourceImage the image to compress
 ///@param Quality the quality level to compress to
 ///@param bWantColor whether the TIFF is color (true) or monochrome (false)
 ///@param bUseGpu whether to use the GPU (true) or the CPU (false) to compress
 ///@param Scale whether to scale the image before conversion, defaults to no scaling
 ///@param Rotate a direction to rotate the image in during conversion, defaults to none
 ///</remarks>
 public static AppleImageUtilsBaseAsyncTaskBlueprintProxy CreateProxyObjectForConvertToTIFF(Texture SourceImage, bool bWantColor, bool bUseGpu, float Scale, ETextureRotationDirection Rotate) =>
 AppleImageUtilsBaseAsyncTaskBlueprintProxy_methods.CreateProxyObjectForConvertToTIFF_method.Invoke(SourceImage, bWantColor, bUseGpu, Scale, Rotate);