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
10
votes
1 answer
Proper way to dispose a BitmapSource
How are you supposed to dispose of a BitmapSource ?
// this wont work because BitmapSource doesnt implement IDisposable
using(BitmapSource bitmap = new BitmapImage(new Uri("myimage.png")))
{
}

Andrew Keith
- 7,515
- 1
- 25
- 41
10
votes
1 answer
Reloading an image in wpf
I'm trying to reload an image (System.Windows.Controls.Image) I display in WPF. I set the source like this:
ScreenAtco01Image.Source = new BitmapImage(new Uri(@"Y:/screenshots/naratco08-0-0-screenshot.png", UriKind.RelativeOrAbsolute));
I made a…
Bastiaan
9
votes
3 answers
C# how to get a bitmap from a picturebox
I have a image in picturebox. I want to get that image as a Bitmap.
My one line code is:
Bitmap default_image = (Bitmap)pictureBox5.Image.Clone();
But what i am getting is:
default_image value=null;
Can anyone help me.

bharathi
- 6,019
- 23
- 90
- 152
9
votes
1 answer
How to identify a panoramic 360 degree image
Is there any method or technique to identify a bitmap (png/jpeg) is actually a 360 degree panoramic image or a normal image. What is the mechanism to distinguish panoramic image from normal image in C# or Three.js.

Razack
- 1,826
- 2
- 16
- 37
8
votes
1 answer
How to save the client area of a child Window to a Bitmap file?
I have created a windows application using core WIN32 and VC++. In my parent window I have a child window and two buttons "save" and "send".
When user clicks the "save" button I want the savefileDialog to be opened and user should be able to save…

Amit
- 13,134
- 17
- 77
- 148
8
votes
3 answers
Why does setImageBitmap has no effect on custom ImageButton?
I found this link that states how I could make the glow effect on my ImageButton. So whenever the user press the ImageButton the onTouchEvent() function is called and there I call the setImageBitmap() function. The problem is this function…

pokche
- 1,141
- 12
- 36
8
votes
2 answers
Convert a BitmapImage to byte array in UWP
How can I convert a BitmapImage object to byte array in UWP ? in .Net it is easy to achieve, even in previous WinRT versions, looked all over the internet but without success, one of the solutions was to use a WriteableBitmap like mentioned in this…

AymenDaoudi
- 7,811
- 9
- 52
- 84
8
votes
2 answers
BitmapImage returns 0 for PixelWidth and PixelHeight
I'm trying to do a super simple thing : get the size of an image.
So I create my BitmapImage but I'm getting 0 when I try to access the PixelWidth and PixelHeight.
How can I accomplish that please?
EDIT: (added sample code)
I'm just doing:
var…

Antoine Gamond
- 802
- 1
- 10
- 19
8
votes
1 answer
How to get the size of bitmap after displaying it in ImageView
I have a imageview

Qadir Hussain
- 8,721
- 13
- 89
- 124
8
votes
1 answer
WP8: Is there an easy way to scale and blur an BitmapImage for windows phone app?
I am working on a windows Phone app that can read Album arts dynamically from Music files through MediaPlayer APIs. I wish to get album arts and resize for view's background. Since the resize would lose details and make image ugly so I would like to…

thsieh
- 620
- 8
- 24
7
votes
2 answers
Silverlight: BitmapImage from stream throws exception (Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)))
I need to dynamically load many (sometimes hundreds) of thumbnail images. For performance reasons I need to do this in a limited number of requests, I am using a single request/response for testing. I am sending the binary data for the images in…

toby
- 885
- 3
- 10
- 21
7
votes
1 answer
UWP BitmapImage to Stream
I have an image that's loaded in XAML using a converter. Rather than load this image again, I want to take that image and find the dominant colour to be able to use for other graphics on the page. So far I have this:
var himage =…

Stu Ayton
- 489
- 3
- 15
7
votes
2 answers
Custom ImageView class not working with Picasso image downloading library
I have recently extended from an ImageView to create a CircularImageView class which makes the image circular with a coloured border. This is done via the onDraw(canvas) method by drawing onto the canvas that is passed in:
//load the bitmap
…

Richard Lewin
- 1,870
- 1
- 19
- 26
7
votes
1 answer
downloaded png image with transparent background shows with black background
In my android application I downloaded some png image and write them in sd card. when I show them in image view they are showing with black background. the original images have transparent background. How I can keep the background transparent.…

user2298296
- 91
- 1
- 4
7
votes
1 answer
How do I convert a WriteableBitmap object to a BitmapImage Object in WPF
How do I convert a WriteableBitmap object to a BitmapImage Object in WPF?
This link covers silverlight, the process is not the same in WPF as the WriteableBitmap object does not have a SaveJpeg method.
So my question is How do I convert a…

JMK
- 27,273
- 52
- 163
- 280