Question : System.drawing.imaging new property item : no constructor

I am trying to add an exif element to a new bitmap in VB.net framework 3.5 but when I try and use

Imports System.Drawing.Imaging
dim t as new propertyItem

I'm told that propertyItem has no constructors.

I have found this example in C which does have a constructor, but it using GDI+ directly.

Do I need to use GDI+ directly rather than via System.drawing.imaging or can they co-exist. If so, how do I get a reference to it?  What's the C code doing in the first 4 line of Main?

Example ref: http://msdn.microsoft.com/en-us/library/ms533832(v=VS.85).aspx
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
#include <windows.h>
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;
INT main()
{
   // Initialize <tla rid="tla_gdiplus"/>.
   GdiplusStartupInput gdiplusStartupInput;
   ULONG_PTR gdiplusToken;
   GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
   Status stat;
   CLSID  clsid;
   char   propertyValue[] = "Fake Photograph";
   Bitmap* bitmap = new Bitmap(L"FakePhoto.jpg");
   PropertyItem* propertyItem = new PropertyItem;

Answer : System.drawing.imaging new property item : no constructor

Random Solutions  
 
programming4us programming4us