Most voted "bitmap" questions
Bitmap (meaning bitmap) are images that contain the description of each pixel, as opposed to vector graphics. The treatment of images of this type requires specialized tools, generally used in photography, as they involve very complex calculations, such as interpolation, matrix algebra. If the question is not about "Bitmap", do not use this tag, even if you are using "Bitmap" in your project.
Learn more…51 questions
Sort by count of
-
13
votes3
answers1792
viewsHow to create a solid mask from a semi-transparent Bitmap?
I want to create the image on the right from the one on the left. And I have the following structure: var Image, Mask : TBitmap; begin Mask := TBitmap.Create; Image := TBitmap.Create;…
-
6
votes2
answers182
viewsHow to send and receive bitmap on restful server
Staff did a search and found very little content, I would like some tips because I never did it. How do I send and receive a bitmap to a server? Send with Json? Convert to Base64? What is the best…
-
5
votes3
answers2000
viewsHow do I get a Facebook profile picture?
I’m having trouble downloading the profile photo. When I add this line, I start the id: userIds2 = profile.getId(); Class public class MainFragment extends android.support.v4.app.Fragment { private…
-
4
votes1
answer114
viewsarray 1D for Bitmap
I’ve been working on an FPGA project that sends an array (1D) of Bytes from a grayscale image to the PC. Well, I wrote a simple code with some image to simulate sending and receiving an array and…
-
4
votes1
answer133
viewsError converting bitmap to pictureBox on C#?
I’m creating a path within C# to always be able to call images from this path, (using namespace.Properties) and through it I am able to call the Resources and using the following code : var myIcon =…
-
4
votes1
answer372
viewsWhat formats are used to represent values (color, contrast, brightness) in digital images?
What I want to do is: recognize pixel patterns in a file, or know how Assembler treats it (to make it easier to recognize these patterns). Always wanted to create some application to manipulate…
image image-processing bitmap image-compressionasked 7 years, 11 months ago Paulo Sérgio Duff 1,201 -
4
votes1
answer321
viewsHow to cut part of a bitmap?
I want to create a Bitmap that its content is a part of another Bitmap For example: I have a Bitmap (400x900) width = 400 height = 900 I want to cut it in the dimensions (400x400) in order to leave…
-
3
votes1
answer106
viewsBitmap array in a single file
I am making an application for Solidwoks and downloaded some examples, in it are used some BMP images as the following view: These images are used as images in menus as follows in C code#:…
-
3
votes1
answer121
viewsHow to create a Bitmap larger than 9999 pixels
When trying a create a Bitmap I realized I can’t create with the size I wanted, I need an image with 16581375 x 1. Bitmap image = new Bitmap(16581375, 1); image.Save("Path aqui"); When I try to…
-
3
votes1
answer180
viewsHow to get a string from an hbitmap
I have a function that captures the monitor image and creates a bitmap file with the result, but I would like you to return a string with the content that the file would have, instead of writing it…
-
3
votes2
answers182
viewsHow to create a Layout bitmap keeping the dimensions equal regardless of the screen density?
I have a layout file and I’m passing it to a bitmap which I then send to a printer bluetooth in bytes. According to the resolution of the cell phone, it changes the sizes of the sources of textviews…
-
3
votes1
answer191
viewsRotate image around the center itself
I am developing a C# application and would like to know how to freely rotate a bitmap which is drawn in a pictureBox without rotating all _pictureBox_e so that the bitmap Rotacione around its own…
-
2
votes2
answers1296
viewsGenerating Bitmap of photo taken
I’m trying to generate a bitmap of a photo taken: public void onClick(View v) { final Runnable runnable = new Runnable() { @Override public void run() { Intent cameraIntent = new…
-
2
votes1
answer1983
viewsEvery image on android should be treated as a bitmap
I was having a problem with uploading images into one Textview, when I came across a very stupid question, rs, someone would know to answer? Next, I was trying to upload a large (high resolution)…
-
2
votes1
answer447
viewsGenerate PPM file
Hello, I have a code to generate a color matrix and a problem to make a sequence, but unfortunately I can not understand well the logic behind it. Enunciation: Create a color palette where each…
-
2
votes0
answers414
viewsCopy existing photo in web link and paste special as bitmap in Excel cell via VBA
I am trying to paste image (thumbnail) linked to a link as below: Ex. The main website is: http://www.imdb.com/title/tt0071007/? ref_=nv_sr_7 From this main page, I intend to copy and paste as…
-
1
votes2
answers1486
viewsConvert a bitmap image to a URL and set in Imageview
Well I would like to know how to set a URL in an Imageview variable, I do not know if I was clear? private final DisplayImageOptions options; public NoticiasAdapter(Activity activity, List objects)…
-
1
votes1
answer110
viewsWhy does Bitmap get bigger when loading it from the res/drawable-mdpi folder?
I developed an application where I download a JPEG image (size 184x274) from a URL. When downloading from the URL I get a bitmap of 184x274 pixels, that is to say it has the same dimension as the…
-
1
votes2
answers818
viewsWhat is the most efficient way to resize bitmaps on Android?
When a device has smaller screen resolutions, you need to resize the bitmaps to optimize its display on the display properly. The problem is that the use of createScaledBitmap can generate a lot of…
-
1
votes1
answer110
viewsDisplaying Bitmap in C#application
I have the following code in my application : Bitmap original = new Bitmap("C:/Projeto/Imagens/antialiasing.jpg"); Graphics g = Graphics.FromImage(original); g.DrawImage(original, 100, 100, 390,…
-
1
votes1
answer66
viewsHow to keep an image in a form?
Hello! To use in game production, I would like to understand how to keep an image in a form through Firemonkey. The code I have so far is as follows:: program TestCase; uses UITypes, Classes, Types,…
-
1
votes0
answers22
viewsImageview Problems with original size
The ImageView by default comes with the resolution that rounds 90x120, this way the loss of quality is notorious when using the Bitmap bitmap = (Bitmap)bundle.get("data"); There is another way to…
-
1
votes1
answer38
viewsHow to scale a bitmap quickly
I’m making a game using Surfaceview and I need a bitmap to be , for example ,a size of 20x20 ,but this bitmap is reused in other parts of the code in different sizes ,that is, it would not be…
-
1
votes0
answers73
viewsConvert Bitmap to Mat
Hello, I am trying to grab saved BLOBS in a Sqlite database and convert them to Bitmap. After that, I need to convert these Bitmaps into Mat, to use with Opencv. The problem is that when I open the…
-
1
votes1
answer324
viewsProblem with reading Bitmaps in C
I’m having trouble reading files Bitmap. Results not as expected. The size is always the same regardless of which image I open Height and width do not match the size stated in the image viewer The…
-
1
votes1
answer75
viewsTransform View into Bitmap without using buildDrawingCache()
I have a function that takes a view and creates a bitmap. follow the code: public static Bitmap getBitmapFromView(Context context, View view) { DisplayMetrics displayMetrics = new DisplayMetrics();…
-
1
votes1
answer225
viewsHow to compress images in Xamarin.Forms?
I am developing an application in Xamarin.Forms that uses the camera of the mobile phone to capture images, however, depending on the client’s mobile the image can reach up to 12MB, this is too much…
-
0
votes1
answer1064
viewsConvert Bitmap/Drawable to Drawable (int)
I need to convert a Bitmap or even a Drawable into a Drawable (int), because I’m using a Bootstrap for android that needs an object of this type, but as I’m downloading the image of a url and not…
-
0
votes2
answers1880
viewsDelphi XE Firemonkey mobile app - How to resize an image?
The problem I face is that I allow the user to insert an image from his mobile device gallery, some images are too big to be recorded in a bank taking into account the wonderful 3g signal quality.…
-
0
votes1
answer263
viewsHow to generate thumbnails of a bitmap using Asynctask?
I have a Fragmentactivity that has a listview, in each item there is a button to open a Dialog, in this Dialog another listview is run with an Adapter that has a Textview and an Imageview, the list…
-
0
votes1
answer51
viewsgetResources(). getDrawable(R.drawable.my_icon) obsolete, how to proceed
Hi, I’m having trouble with the fact that getDrawable is obsolete. Please, how can I convert my code so it can be updated? I thank you in advance! int height = 100; int width = 100; BitmapDrawable…
-
0
votes1
answer706
viewsHow to convert an array of bytes to a bitmap image?
Hello, I am trying to return to an Imageview an image stored in the database that is saved as an array of bytes in a field of type BLOB, what would be the alternatives to this?
-
0
votes1
answer132
viewsImage captured from Sqlite gets black background in Imageview
In my application, I have the need to capture an image that is on a basis SQLite in format byte (Blob) and then convert it to Bitmap in order to display it in a ImageView. My problem is that the…
-
0
votes0
answers555
viewsGenerate image with text
I would like to generate images with dynamic texts! public void generate() { Bitmap src = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher); Bitmap dest = Bitmap.createBitmap(500,…
-
0
votes0
answers827
viewsWhy does the image get bad quality?
Well, the question is simple, why is the image in low quality? Code: Main class: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode ==…
-
0
votes2
answers101
viewsFunction Screenshot on android
I’m putting the screenshot function in the calendar, however the photo is not going as it should. But using native android function comes out correct Follows excerpt from the code: View v1 =…
-
0
votes0
answers48
viewsBlob For bitmap returns null only on Android 4.2.2
It’s simple, if I use this line of code on android 5.0 , 6.0 it works correctly, and converts the blob into bitmap. However, testing here on a lower device (android 4.2.2 ) it always returns null;…
-
0
votes0
answers461
viewsCanvas Draw Tbitmap Multiple Images
Would you like to capture several images and "join" them all in one without having to save them first, I capture 6 images put one over the other according to the position on the screen and saved in…
-
0
votes0
answers69
viewsHow to identify a number on the screen with Bitmap?
I am new in C# and I plan to make a program to identify numbers on the screen and turns them or saves them into a Double variable. The only thing I could do was take the screen print :P Bitmap…
-
0
votes1
answer237
viewsAndroid: How to make a request POST to grab an image
I need to get a server Bitmap through a POST method with the body (JSON) and header to put in an Imageview. I tried using Volley’s Imagerequest but I would need to pass the URL directly from my…
-
0
votes1
answer66
viewsSave Bitmap with Alpha
I have the following class: public class TesteMultiImage extends ActionBarActivity { Uri URI; String ImagePath; Button button; @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes0
answers134
viewsHow do I use Fileprovider and Bitmap together?
I’m having trouble sending a photo to the server, specifically in the excerpt: "bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);". Always when taking the photo it shows error in this line.…
-
0
votes0
answers284
viewsRead bytes of colors (RGB) from a bitmap
I’m trying a problem with a code I did that should display the bytes referring to the RGB color values of each pixel of an image in bmp format (bitmap). I know that in the windows api it is possible…
-
0
votes1
answer37
viewsAndroid: Use component id as key in Array
I have an Android app that has 7 imageButtons, need to store the captured images in a List Bitmap, I am trying to define the indices of the array list as the id of the imageButtons, however the…
-
0
votes1
answer217
viewsLoad Bitmap into Picturebox
I’m building a code to scan biometrics. How do I put the generated image into the device in pictureBox What I use to mount the image in bitmap public Bitmap ExportarBitMap() // Exporta para o BitMap…
-
0
votes1
answer67
viewsStorage firebase in android studio
I’m starting programming for android and I have a project in android studio that creates registration with photo, I added firebase and not how to create the code to send this data with photo,…
-
0
votes0
answers215
viewsCompress Android Studio File
I’m trying to compress my File which in case is an image but it keeps going with sizes above 4MB someone would help me. Follows code below: @Override protected void onActivityResult(int requestCode,…
-
0
votes1
answer130
viewsHow to mount a BMP header (Bitmap) in C
Hello. I’m looking to build a BMP in C-language. I only receive image data, data size, width, height, bpp. I was able to mount the following header structure of BMP: struct BMPHeader { uint16…
-
0
votes0
answers56
viewsProblem with java.lang.Nullpointerexception android.graphics.Bitmap.compress
Hello I’m having this error in my code someone could help me solve this? grateful in advance. java.lang.NullPointerException: Attempt to invoke virtual method 'boolean…
-
0
votes0
answers22
viewsThe "Bitmap" type is defined in an Assembly that is not referenced C#
The problem: I’m doing a project using Windows Form C# which should basically record a video from a webcam and save to the computer. I was using the Aforge.net package to record the video and when I…