Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I need to use a Bitmap class in my app, but this code:

C#
public class PushpinMetadata
{
    public string FileName { get; set; }
    public DateTime DateTimeTaken { get; set; }
    public Bitmap thumbnail { get; set; }
}

...fails because "Bitmap" cannot be found. What reference do I need to add to my project for Bitmap to be resolvable?

Or do I need something else - Picture? Image? Or...???

This is a Windows Store app (Windows 8.1)
Posted
Updated 21-Oct-14 14:39pm
v2
Comments
Sergey Alexandrovich Kryukov 21-Oct-14 22:58pm    
What's wrong with just reading original MSDN documentation? You would waste less time...
—SA

Add: using Windows.UI.Xaml.Media.Imaging;

Reference: Loading and processing bitmaps[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Oct-14 22:57pm    
5ed.
—SA
DamithSL 21-Oct-14 23:37pm    
Thank you SA
Aha, voila, and Eureka - it's apparently BitmapImage that I need.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Oct-14 22:59pm    
Please, don't submit content like that as "solution" — it is not. Such posts are considered as abuse. Comment the post you want; in this case its author will receive a notification. Or use "Improve question".
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900