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
6
votes
1 answer
Loading Images in BackgroundWorker
I have been dealing with a problem with a backgroundWorker these last couple of days. I have been looking through forums and documentation on MSDN but still haven't found the answer so now I want to ask you clever people.
Long story short, I have a…

Anders Nysom
- 101
- 8
5
votes
1 answer
How to convert 'System.Windows.Media.Imaging.BitmapImage' to 'System.Drawing.Image'?
I would like to convert my BitmapImage to a System.Drawing.Image?
This is my BitmapImage:
BitmapImage bmi = new BitmapImage(new Uri(someString, UriKind.Absolute));
Now, how would i create a System.Drawing.Image from my bmi?

Willem
- 9,166
- 17
- 68
- 92
5
votes
2 answers
How to get BitmapSource from BitmapImage?
How to get BitmapSource from BitmapImage? Or how to convert BitmapImage to BitmapFrame directly?
It seems to me that if I have BitmapSource I could use BitmapFrame.Create and finally get BitmapFrame object from given BitmapImage

curiousity
- 4,703
- 8
- 39
- 59
5
votes
1 answer
What is *(int*)&data[18] actually doing in this code?
I came across this syntax for reading a BMP file in C++
#include
int main() {
std::ifstream in('filename.bmp', std::ifstream::binary);
in.seekg(0, in.end);
size = in.tellg();
in.seekg(0);
unsigned char * data = new…

RBreight
- 53
- 7
5
votes
2 answers
How do I handle a huge tif in WPF?
I have an 8bit tiff thats 14406x9606 pixels that when loaded via BitmapImage throws a System.OutOfMemoryException. As a full depth bitmap its about 400 megs in size. Is there a way to partition the image into more manageable chunks? I've tried…

tillerstarr
- 2,616
- 1
- 21
- 35
5
votes
1 answer
BitmapImage in .NET Core 2.0
I am porting .NET Framework project to .NET Core 2.0 but I have struggles with the BitmapImage class. I know that BitmapImage in .NET Framework is part of PresentationCore assembly but in .NET Core I could not add any of these. Also, I have searched…

Georgi Karavasilev
- 188
- 1
- 10
5
votes
3 answers
WPF BitmapImage and TIFF with CMYK + Alpha
I am using this code snippet to load various image files:
BitmapImage bitmap = new BitmapImage ();
bitmap.BeginInit ();
bitmap.UriSource = new System.Uri (path);
bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat;
bitmap.EndInit…

Pierre Arnaud
- 10,212
- 11
- 77
- 108
5
votes
1 answer
Get supported image formats from BitmapImage
How can I get a list of image formats supported by System.Windows.Media.Imaging.BitmapImage?
I am writing a simple image processing tool in C# WPF. The BitmapImage class is one of the more useful bitmap classes as it is able to decode from a wide…

James R
- 156
- 1
- 11
5
votes
2 answers
byte[] to BitmapImage in silverlight
For the purpose of a game, I need to serialize some pictures in a binary file through a WPF application, using bitmapEncoder and its child classes.
But these class are not available in silverlight, so I can't load them into the browser from the same…

kite
- 679
- 2
- 8
- 19
5
votes
1 answer
Android Google Maps Marker: Released unknown imageData reference
I'm trying to add support to tablets in my app and run into IllegalArgumentException thrown by this line of code:
marker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.arrow_green_10by19))
The method .fromResource works fine with the…

Walter Roncada
- 69
- 2
- 7
5
votes
2 answers
Crop an Image in WPF
Give an image:
Image tileSet = new Image();
tileSet.Source = new BitmapImage(new Uri(@".."));
How can i cropt it, defining a rectangle area?

J.Silver
- 75
- 2
- 4
5
votes
2 answers
winapi - CreateDIBitmap in 24bpp is in BGR not RGB
I am trying to create an HBITMAP from an array which will contain the color values for the Pixels. The thing is when I try to create a 24-bpp Bitmap, the CreateDIBItmap is using BGR values instead of RGB as I would like.
The code to create the…

Jean Claude Abela
- 782
- 1
- 9
- 26
5
votes
3 answers
InteropBitmap to BitmapImage
I'm trying to Convert a Bitmap (SystemIcons.Question) to a BitmapImage so I can use it in a WPF Image control.
I have the following method to convert it to a BitmapSource, but it returns an InteropBitmapImage, now the problem is how to convert it to…

Tony The Lion
- 61,704
- 67
- 242
- 415
5
votes
1 answer
BitmapImage OutOfMemoryException only in Windows 8.1
I've installed Windows 8.1 recently to try, and my pet project is crashing on it (same binary works fine on one Win7 and two Win8 machines).
OutOfMemoryException is being thrown in BitmapImage.EndInit:
public static BitmapImage…

Pavel Tupitsyn
- 8,393
- 3
- 22
- 44
5
votes
1 answer
How to store save Thumbnail image in device in windows 8 metro apps c#
I am creating Thumbnail and showing in frame by using this code
Platform -> windows 8 metro apps using c#
http://code.msdn.microsoft.com/windowsapps/File-and-folder-thumbnail-1d530e5d
in windows 8 metro apps using c#. i need to save or Store ( in…

user2716989
- 53
- 1
- 4