Questions tagged [bitmap]

Data structure for encoding pictures as a set of bits, in which each image pixel is mapped to a bit or a group of bit. Also used for encoding other complex data where each elementary information is mapped to bits, in a similar fashion. For platform specific bitmap API, prefer more specific tags (e.g. android-bitmap or nsbitmapimagerep).

A is a general data structure that maps complex data to a large set of bits. Each elementary information is mapped to specific bits.

Bitmaps are mostly used to encode graphic data and images. Each image pixel is mapped to a bit (black & white image) or a group of bits (grey scale or color image).

Usage guidelines:

External references:

15713 questions
4
votes
1 answer

Converting a screenshot bitmap to jpeg in memory

I am trying to take a screenshot of the whole screen and would like to send it over the network to a server. (the server will be the one to save it) I am currently using this code HBITMAP hBitmap = CreateCompatibleBitmap(hScreen, w, h); CImage…
majidarif
  • 18,694
  • 16
  • 88
  • 133
4
votes
3 answers

Android - While handling an image is it better to store it or use it in temporary memory?

I'm trying to build an app that takes a picture with the camera an sends it back to the main activity to display it in an ImageVew. I saw a tutorial that saves the image in the SD Card when the picture is taken. I'm able to save the file but I'm…
Etienne GT
  • 185
  • 8
4
votes
0 answers

Find a text in a bitmap image

I need to determine if a set of string is displayed in a set of images. This is a simplified OCR case with these simplifications : Fixed font family and size Images are bitmaps (gif, png). No antialiasing I only need a true/false result, not…
Zofren
  • 1,190
  • 2
  • 11
  • 22
4
votes
1 answer

UIElement Screenshot UWP - C#

I search in web but I not found any solution to take a screenshot an UI element (in bitmap by example) in UWP - Universal Windows Platform.
fipcurren88
  • 701
  • 5
  • 26
4
votes
3 answers

Yuv (NV21) image converting to bitmap

I am trying to capture images from camera preview and do some drawing on it. The problem is, I have only about 3-4 fps of drawing, and half of the frame processing time is receiving and decoding NV21 image from camera preview and converting to…
Dainius Šaltenis
  • 1,644
  • 16
  • 29
4
votes
1 answer

Past DWM screen capture to TBitmap

I have found a demo application that is able to get a screenshot of a minimized/hidden window using DwmRegisterThumbnail. It works perfect but the result image is draw in the form itself instead of a TBitmap. This is the code: procedure…
user4805785
4
votes
0 answers

Shortcut's background is filled with white color

I've written an application creating contact shortcut on android home screen. A problem appears if the contact icon has transparent pixels: the shortcut's background is filled with white color. Here is a piece of code creating shortcut: Uri…
Irina
  • 41
  • 1
4
votes
2 answers

Rotate bitmap in fixed point like a clock hand in SurfaceView

I have an image in drawable folder for clock hand. I want to rotate it in fixed point like a clock hand. I have tried below code which rotates the hand in circular path around a fixed point but not as like clock hand. Matrix matrix = new Matrix(); …
Mohammad Tauqir
  • 1,817
  • 1
  • 18
  • 53
4
votes
2 answers

.NET Bitmap.Load method produce different result on different computers

I try to load JPEG file and delete all black and white pixels from image C# Code: ... m_SrcImage = new Bitmap(imagePath); Rectangle r = new Rectangle(0, 0, m_SrcImage.Width, m_SrcImage.Height); BitmapData bd = m_SrcImage.LockBits(r,…
Pavel.Zh
  • 437
  • 3
  • 15
4
votes
2 answers

copy hdc contents to bitmap

How could you copy the contents of an HDC to a bitmap?
user37875
  • 13,904
  • 9
  • 37
  • 43
4
votes
5 answers

Out of memory error on getDrawable()

I want to get the current image set as the wallpaper in Android device and set it to the image view in my list after scaling it . What i am doing id this: final WallpaperManager wm = WallpaperManager.getInstance(this); final Drawable…
beginner
  • 383
  • 3
  • 5
  • 19
4
votes
1 answer

Converting a hex string of a raw image to a bitmap image in JavaScript

Introduction: I am reading image data of fingerprints from smart card and as you know this data save as raw image in smart card. I am developing a client side program which only use java script to read image from scanner of a card reader and show…
Hosein Aqajani
  • 1,553
  • 4
  • 26
  • 46
4
votes
2 answers

"No content provider execution " error while converting uri to Bitmap

i am trying to retrieve an image from the Uri , firstly i selected the image from gallery then passed the imagePath using an intent and trying to get the image from Uri by using this codes - Uri imgUri =…
user5625828
4
votes
2 answers

android bitmap pixel format for glTexImage2D

I'm trying to load textures to use with NDK OpenGL from Java with the Bitmap class. It works, but I'm having problems with the pixel format. First, in Java, I load a bitmap from the assets folder like this: Bitmap bitmap =…
spinalwrap
  • 683
  • 1
  • 4
  • 17
4
votes
0 answers

How to Share Android Screenshot dynamically by button click

I am working on an app which requires specifically to take a screenshot of the screen and should be able to share it as a image file. I also need to include a hyperlink as caption to the image for Watsapp and Facebook. I am using the below code…
Doogle
  • 1,236
  • 1
  • 17
  • 17
1 2 3
99
100