Linked Questions

0 votes
1 answer
1k views

How to convert System.Windows.Media.Imaging.BitmapSource to Bitmap for SharpDX?
jshapen's user avatar
  • 15
0 votes
0 answers
76 views

Here is what i have so far OpenFileDialog dialog = new OpenFileDialog { CheckFileExists = true, Multiselect = false, Filter = "Images (*.jpg,*.png)|*....
Reza Pak's user avatar
  • 129
240 votes
10 answers
250k views

I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage. What would be the best approach for this?
Kevin's user avatar
  • 9,429
76 votes
4 answers
135k views

How do I assign an in-memory Bitmap object to an Image control in WPF ?
Prashant Cholachagudda's user avatar
53 votes
6 answers
34k views

I need to draw an image pixel by pixel and display it inside a WPF. I am attempting to do this by using a System.Drawing.Bitmap then using CreateBitmapSourceFromHBitmap() to create a BitmapSource for ...
Mr Bell's user avatar
  • 9,334
32 votes
2 answers
42k views

I'm tying together two libraries. One only gives output of type System.Windows.Media.Imaging.BitmapSource, the other only accepts input of type System.Drawing.Image. How can this conversion be ...
Mizipzor's user avatar
  • 52.7k
10 votes
3 answers
5k views

I have a DrawingContext (part of a Visual or a DrawingGroup), where I draw a bunch of rectangles and/or 1-bit images on top of each other. Think of it as a masking 1-bit image. I would like to convert ...
LadderLogic's user avatar
  • 1,140
4 votes
0 answers
6k views

I want to get the bit depth (and color space) of an image file with c#. Here are my testfiles. Using the properties of the windows explorer, I verified their bit depths (8, 16, 24, 48, 96). ...
Leander's user avatar
  • 596
3 votes
3 answers
1k views

I am creating images in various formats in WPF using BitmapEncoder. For example, to create a png image from a FrameworkElement, i am using the following code, BitmapEncoder imgEncoder = new ...
WPF Lover's user avatar
  • 309
0 votes
2 answers
2k views

I want to get file's thumbnail with transparency. I have the following code to achieve it: BitmapImage GetThumbnail(string filePath) { ShellFile shellFile = ShellFile.FromFilePath(filePath); ...
Ron's user avatar
  • 4,113
1 vote
1 answer
2k views

why the following code is returning null for btmSrc ? DrawingImage drawingElement =(DrawingImage)System.Windows.Application.Current.TryFindResource(name); System.Windows.Controls.Image image = new ...
Strider007's user avatar
  • 4,995
-1 votes
1 answer
2k views

I'm doing a WPF application and one of the functions is to record video (Only RGB stream) from Kinect sensor (using Aforge and SDK 1.5). In my application, i have a button that when clicked, it ...
user1632904's user avatar
3 votes
0 answers
2k views

Can anyone suggest a way to convert a 2352x1726x8bit greyscale BitmapSource to Bitmap that is faster than the following taking about 600ms on a 3.2GHz P4: public static Bitmap toBitmap(this ...
ChrisJJ's user avatar
  • 2,312
1 vote
2 answers
2k views

I'm working on a project for school involving C#, Kinect, and Emgu CV. I fairly new to both C# and Emgu CV, so I may be missing something simple. What I am trying to do is use the image from the ...
user2074222's user avatar
1 vote
1 answer
922 views

I have an image in a the clipboard ( a bitmap ) which I am pulling from the clipboard as follows datObj = Clipboard.GetDataObject(); InteropBitmap pdfBitmap = datObj.GetData(DataFormats....
Rahul's user avatar
  • 2,234

15 30 50 per page