21 references to PtrToStructure
System.Drawing (21)
commonui\System\Drawing\Advanced\EncoderParameters.cs (1)
119
Guid guid = (Guid) UnsafeNativeMethods.
PtrToStructure
((IntPtr)( i * size + arrayOffset), typeof(Guid));
commonui\System\Drawing\Advanced\Gdiplus.cs (2)
3222
pt = (GPPOINTF) UnsafeNativeMethods.
PtrToStructure
((IntPtr)((long)memory+index*size), pt.GetType());
3244
pt = (GPPOINT) UnsafeNativeMethods.
PtrToStructure
((IntPtr)((long)memory+index*size), pt.GetType());
commonui\System\Drawing\Advanced\Metafile.cs (6)
836
header.wmf = (MetafileHeaderWmf) UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderWmf));
841
header.emf = (MetafileHeaderEmf)UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderEmf));
883
header.wmf = (MetafileHeaderWmf)UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderWmf));
888
header.emf = (MetafileHeaderEmf)UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderEmf));
930
header.wmf = (MetafileHeaderWmf)UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderWmf));
935
header.emf = (MetafileHeaderEmf)UnsafeNativeMethods.
PtrToStructure
(memory, typeof(MetafileHeaderEmf));
commonui\System\Drawing\Image.cs (1)
1102
guids[i] = (Guid) UnsafeNativeMethods.
PtrToStructure
((IntPtr)((long)buffer + size*i), typeof(Guid));
commonui\System\Drawing\Printing\PageSettings.cs (6)
212
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
284
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
339
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
432
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
474
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
558
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(pointer, typeof(SafeNativeMethods.DEVMODE));
commonui\System\Drawing\Printing\PrinterSettings.cs (3)
1024
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(pointer, typeof(SafeNativeMethods.DEVMODE));
1148
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(modePointer, typeof(SafeNativeMethods.DEVMODE));
1319
SafeNativeMethods.DEVMODE mode = (SafeNativeMethods.DEVMODE) UnsafeNativeMethods.
PtrToStructure
(pointer, typeof(SafeNativeMethods.DEVMODE));
commonui\System\Drawing\PropertyItemInternal.cs (1)
71
propcopy = (PropertyItemInternal) UnsafeNativeMethods.
PtrToStructure
(propdata,
commonui\System\Drawing\Region.cs (1)
1020
gprectf = (GPRECTF) UnsafeNativeMethods.
PtrToStructure
((IntPtr)(checked((long)memoryRects + rectsize*index)), typeof(GPRECTF));