android - Trying to create a compressed bitmap in png format getting 2 errors -
I am trying to create a compressed bitmap.
I try to use it to save a second bitmap in the output stream, bitmap compresses the ram, then use the decoded stream to make the bitmap object from the output stream
The following errors in my code are: 1. The output to the outputstream is not defined by the metallic to battery. Can not keep the type of outstream in mind.
My code
inputStream = assetManager.open (sb.toString ()); Bitmap b = bitmapfinder Singlestream (inputstream); / / An OutputStream Output From This Line = Stream Out = New OutputStream () is not copied, error arises; b.compress (bitmap.compress format.png, 100, out); // this; ine is error saying method bitmap decode does not exist = bitmapfichter Decodestream (new ByteArrayInputStream (out.toByteArray ()));
Try changing your output speed : BitReon OutputStream Out = New Bytereanputstream (); There is toByteArray () not in the output stream . In the shortcut of inputstream,
byteoutputstream will still be accepted because it's the `outputstream` Subclass is
Comments
Post a Comment