Questions tagged as 'bitmap'

2
answers

BitmapFactory.decodeStream (fileInputStream) returns null - Android

Good! I have a problem with the following code in Android Studio: try { FileInputStream fileInputStream = new FileInputStream(dirPhoto); bitmap = BitmapFactory.decodeStream(fileInputStream); vwImagen.setImageBitmap(bitmap); } catch (S...
asked by 17.03.2017 / 19:37
2
answers

I can not get the Uri on some devices

I just migrated my code from sdk 22 to sdk 23, and in the test cell (moto g3) I had no problems, but it turns out that there are devices that present problems (Samsung Galaxy J2) ... Before when I used compileSdkVersion = 22, both phones worked,...
asked by 19.08.2016 / 00:15
1
answer

Problem when showing photo in an imageview

I am developing an application where I have an option to capture a photo with the camera and upload it to my server. Well I told you the following, the application worked very well, I could take the photo and upload it to my server, but I rea...
asked by 17.05.2017 / 17:07
1
answer

Is it possible to save the contents of a panel in a binary file?

Regarding my question, is it possible to save the contents of a panel in a binary file? What I need is to know if it is possible and how I could develop it. In other words, I have a panel on which I can draw. After drawing I would like to be...
asked by 20.01.2016 / 23:53
1
answer

Attach (Render) text to a Drawable on Android

I've done some research on the net and found this class here: link public class TextDrawable extends Drawable { private final String text; private final Paint paint; public TextDrawable(String text) { this.text = te...
asked by 08.06.2017 / 17:38
3
answers

Load bitmap with Glide

I am trying to load a Bitmap with the Glide library but there is no method to load it and in the documentation I did not find it either. I've been looking for more sites like English EO and I found several posts but I did not get to understan...
asked by 25.10.2016 / 11:57
1
answer

Draw figure in Panel with Bitmap, C #

How can I draw these specific figures on the panels? I have two panels to which I want to draw these two figures:    A figure in each one, could put the image as such in the background property BackgroundImage of the panel,...
asked by 18.01.2018 / 15:59
0
answers

How to recycle images

I have declared a couple of images and I draw them with the canvas. My question is what would be the correct way to recycle or delete an image that I am no longer using or do not want to be seen to free memory. Thank you. public class Juego...
asked by 30.07.2018 / 16:31
1
answer

Convert Image saved in resource.mipmap to Bitmap

I have an image in the mipmap folder of my project, I would like to convert that image to Bitmap . I tried this way but it does not work for me since it tells me that    (R.mipmap.imagen_deseada) can not be applied to thi...
asked by 21.09.2018 / 19:06
1
answer

Error showing image on Android

Android is marking this error, but I really do not have the slightest idea why it is doing my process correctly and it shows me the image:    E / BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: http: /www.paisajesboni...
asked by 23.12.2016 / 17:17