Error in bitmap.compress function Java.IO.OutputStream to System.IO.OutputStream

BoomiBoomi USMember
edited November 2014 in Xamarin.Android

Using The Bitmap.compress function in xamarin I have this error "Error CS1502: The best overloaded method match for 'Android.Graphics.Bitmap.Compress(Android.Graphics.Bitmap.CompressFormat, int, System.IO.Stream)' has some invalid arguments (CS1502) "
What I can do

ByteArrayOutputStream objByteArrayOutputStream=new ByteArrayOutputStream();
objBitmap.Compress(Bitmap.CompressFormat.Png, 0, objByteArrayOutputStream);
byteSign = objByteArrayOutputStream.ToByteArray();//objMemoryStream.ToArray();

Posts

Sign In or Register to comment.