Unity.Platform.IPhone.IPhoneMedia.ResizeImage C# (CSharp) Method

ResizeImage() private method

private ResizeImage ( byte imageData, nfloat width, nfloat height ) : byte[]
imageData byte
width nfloat
height nfloat
return byte[]
		private byte[] ResizeImage(byte[] imageData, nfloat width, nfloat height) {
			try {
				SystemLogger.Log (SystemLogger.Module.PLATFORM, "Resizing image...");
				return ImageResizer.ResizeImage(imageData, (float)width, (float)height); // in this byte-array the resized image is given back
			} catch(Exception ex) {
				SystemLogger.Log(SystemLogger.Module.PLATFORM, "Error resizing media file: " + ex.Message, ex);
				return imageData;
			}
		}