A bitmap(BMP) is a raster graphics image file. It is also referred to as a Device Independent Bitmap (DIB).
Questions tagged [bitmapimage]
900 questions
0
votes
2 answers
bitmap not saving image to memory stream
Need a little help here. I have a app that I am creating that mergies two pictures together. The issue is when i am trying to convert the bitmap into a bitmpaimage to display the result on the screen. from what i can tell, the image is not being…

chris
- 78
- 1
- 15
0
votes
1 answer
Write a bmp image from a c++ array
I have written a class to perform certain manipulations on a 3D grayscale image that I have placed in a vector container of doubles and use indexing to iterate through the rows, columns and slices.
I want to output this image as a bitmap file. I…

Lisa
- 53
- 6
0
votes
1 answer
DiskLruCache Null Pointer Exception on emulator
This code is working fine on my real device but giving null pointer exception if I run my application on emulator-
DiskLruImageCache.java
public DiskLruImageCache(Context context, String uniqueName,
int diskCacheSize, CompressFormat…

sjain
- 23,126
- 28
- 107
- 185
0
votes
1 answer
Clear Part of Bitmap to Transparent
I am creating program with multileyered picturebox, the image of picturebox is update dynamically from bitmap in memory, and i want to clear the selected part on bitmap to transparent color so i can see image of picturebox behind it.
Here is my…

Sandy Fatria
- 3
- 3
0
votes
1 answer
BitmapImage from BitmapSource always Bgr32
I'm loading a BitmapImage from a BitmapSource and i always find the BitmapImage's format is Bgr32 instead of Bgra32 which the BitmapSource is. There is a similar thread on this here:
BitmapImage from file PixelFormat is always bgr32
but using…

user1200340
- 157
- 1
- 3
- 10
0
votes
1 answer
Example of a singleton class with a dictionary of BitmapImages
I know this is a simple question, but I can't find an example anywhere. Please think of this as helping out a newbie. I need to create a singleton class so I can access a dictionary of BitmapImages across multiple files.
The dictionary…

zetar
- 1,225
- 2
- 20
- 45
0
votes
2 answers
Out of memory exception while loading large number of images in wp7
I am loading a large number of images, say 250+ and getting this Out of memory exception.
My Code:
while (kount < imageItems.Count)
{
for (int i = 0; i < _grid.RowDefinitions.Count; i++)
{
BitmapImage bit=null;
for (int j =…

Csharp_crack
- 246
- 1
- 6
- 18
0
votes
1 answer
Save BitMapImage to application folder
I am trying to save BitmapImage in application folder path. I am using following code
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.Filter = "JPEG Files (*.jpeg)|*.jpeg|PNG Files (*.png)|*.png|JPG Files (*.jpg)|*.jpg|GIF Files…

Rajeev Kumar
- 4,901
- 8
- 48
- 83
0
votes
1 answer
Drawing semi-transparently on a BitmapImage on an Image in a ContentPresenter in a Viewbox
It seems like variations of this question have been asked before, but not this specifically. Also, it seems that BitmapImages are different from straight Bitmaps. So here we go:
I've got a BitmapImage x:Name="HeightMapImage" that is pointing to an…

zetar
- 1,225
- 2
- 20
- 45
0
votes
1 answer
Allegro 4 , load gif image
I am trying to create a program using allegro 4 to load a few images for creating a space invaders User interface.
#include
int main(void)
{
char *filename = "ship.gif";
BITMAP *image;
int ret;
allegro_init();…

Ong Pek
- 1
0
votes
2 answers
Questions reagarding bitmap image and image storage
I have the bitmap image that I got from my camera activity. Can someone please guide me as to how can I store this image in the gallery?
code:
In my button OnClickListener
Intent campic=new…

Nemin Shah
- 217
- 1
- 3
- 15
0
votes
1 answer
How to save pixels displayed on the screen in mutable Bitmap
I am trying to make an Android aplication, in which you take a foto. You zoom in to a desired region of the foto then you copy this region into a Bitmap for further processing.
I tried to make a new mutable Bitmap to copy the Bitmap from ImageView…

Theodor Paulus
- 141
- 1
- 4
0
votes
2 answers
Bytearray to string android
I am trying to create a camera intent and a sub portion of the code is given below.
public void onPictureTaken(byte[] data, Camera camera) {
String dat = new String(data);
byte[] datas = dat.getBytes();
…

bharath
- 953
- 4
- 17
- 30
0
votes
0 answers
Reduce application memory for cropped image in C# WPF
We're displaying cropped images in our WPF application by creating a new CroppedImage from the original bitmap. but when we look at application memory it's the same for displaying cropped images as it is for displaying the original image. This is…

exkoria
- 1,176
- 2
- 13
- 27
0
votes
0 answers
WPF: How to make images scale together
I am dynamically adding images using view boxes to a UniformGrid.
for (int i = 0; i < count; i++)
{
var viewbox = new Viewbox();
var filePath = "myFilePath";
if (!File.Exists(filePath)) continue;
var newImage = new Image();
var…

Chutes
- 123
- 1
- 8