Questions tagged as 'bitmap'

1
answer

Upload an image from a URL in a Recycler View

I'm doing an exercise where I connect my application with an external database, I can retrieve text stored in a MySQL database, I have a field called a photo, it's a "varchar" and there I store a URL on it. problem is that when I load the image...
asked by 26.11.2018 / 19:15
1
answer

BitmapFactory functionality

I've been browsing the API of android for a while trying to understand the function of BitmapFactory . At what times am I supposed to use BitmapFactory , and why?     
asked by 12.08.2016 / 17:22
0
answers

How to create a white bitmap from an array of bytes?

I am working on android and I want to create a white bitmap from an array of bytes but I do not know how it is done, for the moment I have tried this byte[] bytes = new byte[10000]; for (int i=0;i<bytes.length;i++){ b[i]= 0 &...
asked by 08.07.2018 / 03:32
0
answers

Compress image before uploading it to the server

I have an application in development where I upload an image to an external server. My problem is: if the user has a cell phone with a good resolution camera, the images have a large size ... and they are not shown in the ImageView, nor are t...
asked by 02.06.2017 / 17:48
1
answer

Modification of ListviewAdapter

I found on this page a code from a listview with images: link I need to work with bitmap type, I changed everything from the int [] type to Bitmap [] . The result is the following: public class MainActivity extends AppCompatActivity { Li...
asked by 01.06.2017 / 18:50
1
answer

Add watermark on Android using Glide

I have the code to add an image in an imageview: try { Glide.with(imagen.getContext()) .load(item.getIdImagen()) //.transform(new GestorImagenes(context, 90f)) .into(imagen);...
asked by 05.04.2017 / 22:04
2
answers

Use Glide to load an image that is stored in internal storage

I'm trying to load an image from the internal memory using the Glide library but it seems impossible. imagePath="/storage/emulated/0/Pictures/IMG-20161029-WA0025.jpg" This is the simplest code but it does not work. public class MainActivi...
asked by 15.05.2017 / 06:08
2
answers

Error inserting background image in a form of windows form

I wanted to know why I get this error when trying to put a background image in a form of windows form. I have seen like 3 tutorials where they put the same code and it does not give them error, I would really appreciate if someone could help me....
asked by 07.11.2018 / 16:29
1
answer

convert bitmap to array of bytes [closed]

I try to convert a bitmap file in android, to an array of bytes and then pass it to a web service asmx, and since it is saved in a sql database, but I get compatibility error, would anyone know how I can do it?     
asked by 12.04.2018 / 20:58
1
answer

How to scale images with canvas as background

I try to put a Background in the app, something very simple to learn the use of canvas and bitmaps protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Win...
asked by 12.08.2016 / 18:02