Reign.Video.Image.Save C# (CSharp) Method

Save() public static method

public static Save ( byte inData, int width, int height, Stream outStream, ImageFormats imageFormat, ImageSavedCallbackMethod imageSavedCallback ) : void
inData byte
width int
height int
outStream Stream
imageFormat ImageFormats
imageSavedCallback ImageSavedCallbackMethod
return void
        public static void Save(byte[] inData, int width, int height, Stream outStream, ImageFormats imageFormat, ImageSavedCallbackMethod imageSavedCallback)
        {
            switch (imageFormat)
            {
                #if !NaCl && !XNA && !VITA && !WP8
                case ImageFormats.BMPC: ImageBMPC.Save(inData, width, height, outStream, imageSavedCallback); break;
                #endif
                #if WINRT
                case ImageFormats.PNG: ImagePNG.Save(inData, width, height, outStream, imageSavedCallback); break;
                #endif
                default: Debug.ThrowError("Image", string.Format("Unsuported format: ", imageFormat)); break;
            }
        }