125 references to IPicture
System.Private.Windows.Core (89)
Windows.Win32.IPicture.g.cs (67)
26
:IVTable<
IPicture
,
IPicture
.Vtbl>,IComIID {
42
return ((delegate *unmanaged [Stdcall]<
IPicture
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((
IPicture
*)Unsafe.AsPointer(ref this), riid, ppvObject);
47
return ((delegate *unmanaged [Stdcall]<
IPicture
*,uint>)lpVtbl[1])((
IPicture
*)Unsafe.AsPointer(ref this));
52
return ((delegate *unmanaged [Stdcall]<
IPicture
*,uint>)lpVtbl[2])((
IPicture
*)Unsafe.AsPointer(ref this));
68
private static winmdroot.Foundation.HRESULT get_Handle(
IPicture
* pThis, winmdroot.System.Ole.OLE_HANDLE* pHandle)
97
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((
IPicture
*)Unsafe.AsPointer(ref this), pHandle);
113
private static winmdroot.Foundation.HRESULT get_hPal(
IPicture
* pThis, winmdroot.System.Ole.OLE_HANDLE* phPal)
142
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((
IPicture
*)Unsafe.AsPointer(ref this), phPal);
158
private static winmdroot.Foundation.HRESULT get_Type(
IPicture
* pThis, winmdroot.System.Ole.PICTYPE* pType)
186
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((
IPicture
*)Unsafe.AsPointer(ref this), pType);
202
private static winmdroot.Foundation.HRESULT get_Width(
IPicture
* pThis, int* pWidth)
230
return ((delegate *unmanaged [Stdcall]<
IPicture
*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((
IPicture
*)Unsafe.AsPointer(ref this), pWidth);
246
private static winmdroot.Foundation.HRESULT get_Height(
IPicture
* pThis, int* pHeight)
274
return ((delegate *unmanaged [Stdcall]<
IPicture
*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((
IPicture
*)Unsafe.AsPointer(ref this), pHeight);
290
private static winmdroot.Foundation.HRESULT Render(
IPicture
* pThis, winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds)
327
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((
IPicture
*)Unsafe.AsPointer(ref this), hDC, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, pRcWBounds);
333
private static winmdroot.Foundation.HRESULT set_hPal(
IPicture
* pThis, winmdroot.System.Ole.OLE_HANDLE hPal)
359
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((
IPicture
*)Unsafe.AsPointer(ref this), hPal);
375
private static winmdroot.Foundation.HRESULT get_CurDC(
IPicture
* pThis, winmdroot.Graphics.Gdi.HDC* phDC)
404
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((
IPicture
*)Unsafe.AsPointer(ref this), phDC);
423
private static winmdroot.Foundation.HRESULT SelectPicture(
IPicture
* pThis, winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut)
450
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((
IPicture
*)Unsafe.AsPointer(ref this), hDCIn, phDCOut, phBmpOut);
466
private static winmdroot.Foundation.HRESULT get_KeepOriginalFormat(
IPicture
* pThis, winmdroot.Foundation.BOOL* pKeep)
494
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((
IPicture
*)Unsafe.AsPointer(ref this), pKeep);
500
private static winmdroot.Foundation.HRESULT put_KeepOriginalFormat(
IPicture
* pThis, winmdroot.Foundation.BOOL keep)
525
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((
IPicture
*)Unsafe.AsPointer(ref this), keep);
531
private static winmdroot.Foundation.HRESULT PictureChanged(
IPicture
* pThis)
555
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.HRESULT>)lpVtbl[14])((
IPicture
*)Unsafe.AsPointer(ref this));
571
private static winmdroot.Foundation.HRESULT SaveAsFile(
IPicture
* pThis, winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize)
598
return ((delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((
IPicture
*)Unsafe.AsPointer(ref this), pStream, fSaveMemCopy, pCbSize);
614
private static winmdroot.Foundation.HRESULT get_Attributes(
IPicture
* pThis, uint* pDwAttr)
645
return ((delegate *unmanaged [Stdcall]<
IPicture
*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((
IPicture
*)Unsafe.AsPointer(ref this), pDwAttr);
669
internal delegate *unmanaged [Stdcall]<
IPicture
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
671
internal delegate *unmanaged [Stdcall]<
IPicture
*,uint> AddRef_2;
673
internal delegate *unmanaged [Stdcall]<
IPicture
*,uint> Release_3;
675
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> get_Handle_4;
677
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> get_hPal_5;
679
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT> get_Type_6;
681
internal delegate *unmanaged [Stdcall]<
IPicture
*,int* ,winmdroot.Foundation.HRESULT> get_Width_7;
683
internal delegate *unmanaged [Stdcall]<
IPicture
*,int* ,winmdroot.Foundation.HRESULT> get_Height_8;
685
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT> Render_9;
687
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Ole.OLE_HANDLE ,winmdroot.Foundation.HRESULT> set_hPal_10;
689
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT> get_CurDC_11;
691
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> SelectPicture_12;
693
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_KeepOriginalFormat_13;
695
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_KeepOriginalFormat_14;
697
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.Foundation.HRESULT> PictureChanged_15;
699
internal delegate *unmanaged [Stdcall]<
IPicture
*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT> SaveAsFile_16;
701
internal delegate *unmanaged [Stdcall]<
IPicture
*,uint* ,winmdroot.Foundation.HRESULT> get_Attributes_17;
Windows.Win32.System_Ole_IPicture_Extensions.g.cs (22)
23
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_Handle(winmdroot.System.Ole.OLE_HANDLE*)"/>
24
internal static unsafe winmdroot.Foundation.HRESULT get_Handle(this winmdroot.System.Ole.
IPicture
.Interface @this, out winmdroot.System.Ole.OLE_HANDLE pHandle)
33
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_hPal(winmdroot.System.Ole.OLE_HANDLE*)"/>
34
internal static unsafe winmdroot.Foundation.HRESULT get_hPal(this winmdroot.System.Ole.
IPicture
.Interface @this, out winmdroot.System.Ole.OLE_HANDLE phPal)
43
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_Type(winmdroot.System.Ole.PICTYPE*)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT get_Type(this winmdroot.System.Ole.
IPicture
.Interface @this, out winmdroot.System.Ole.PICTYPE pType)
53
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_Width(int*)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT get_Width(this winmdroot.System.Ole.
IPicture
.Interface @this, out int pWidth)
63
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_Height(int*)"/>
64
internal static unsafe winmdroot.Foundation.HRESULT get_Height(this winmdroot.System.Ole.
IPicture
.Interface @this, out int pHeight)
73
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.Render(winmdroot.Graphics.Gdi.HDC, int, int, int, int, int, int, int, int, winmdroot.Foundation.RECT*)"/>
74
internal static unsafe winmdroot.Foundation.HRESULT Render(this winmdroot.System.Ole.
IPicture
.Interface @this, winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, in winmdroot.Foundation.RECT pRcWBounds)
83
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_CurDC(winmdroot.Graphics.Gdi.HDC*)"/>
84
internal static unsafe winmdroot.Foundation.HRESULT get_CurDC(this winmdroot.System.Ole.
IPicture
.Interface @this, out winmdroot.Graphics.Gdi.HDC phDC)
93
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.SelectPicture(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC*, winmdroot.System.Ole.OLE_HANDLE*)"/>
94
internal static unsafe winmdroot.Foundation.HRESULT SelectPicture(this winmdroot.System.Ole.
IPicture
.Interface @this, winmdroot.Graphics.Gdi.HDC hDCIn, out winmdroot.Graphics.Gdi.HDC phDCOut, out winmdroot.System.Ole.OLE_HANDLE phBmpOut)
106
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_KeepOriginalFormat(winmdroot.Foundation.BOOL*)"/>
107
internal static unsafe winmdroot.Foundation.HRESULT get_KeepOriginalFormat(this winmdroot.System.Ole.
IPicture
.Interface @this, out winmdroot.Foundation.BOOL pKeep)
116
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.SaveAsFile(winmdroot.System.Com.IStream*, winmdroot.Foundation.BOOL, int*)"/>
117
internal static unsafe winmdroot.Foundation.HRESULT SaveAsFile(this winmdroot.System.Ole.
IPicture
.Interface @this, winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, out int pCbSize)
126
/// <inheritdoc cref="winmdroot.System.Ole.
IPicture
.Interface.get_Attributes(uint*)"/>
127
internal static unsafe winmdroot.Foundation.HRESULT get_Attributes(this winmdroot.System.Ole.
IPicture
.Interface @this, out uint pDwAttr)
System.Private.Windows.GdiPlus (17)
System\Drawing\IIconExtensions.cs (4)
36
using ComScope<
IPicture
> picture = icon.CreateIPicture(copy);
40
internal static ComScope<
IPicture
> CreateIPicture(this IIcon icon, bool copy)
43
ComScope<
IPicture
> picture = new(null);
44
PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<
IPicture
>(), fOwn: copy, picture).ThrowOnFailure();
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (5)
62
using ComScope<
IPicture
> picture = image.CreateIPicture();
63
return (
IPicture
.Interface)ComHelpers.GetObjectForIUnknown(picture);
66
public static ComScope<
IPicture
> CreateIPicture(this IPointer<GpImage> image)
69
ComScope<
IPicture
> picture = new(null);
70
PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<
IPicture
>(), fOwn: true, picture).ThrowOnFailure();
Windows\Win32\System\Ole\IPicture.cs (8)
15
using ComScope<
IPicture
> picture = CreateFromImage(image);
19
public static ComScope<
IPicture
> CreateFromImage(IPointer<GpImage> image)
22
ComScope<
IPicture
> picture = new(null);
23
PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<
IPicture
>(), fOwn: true, picture).ThrowOnFailure();
30
using ComScope<
IPicture
> picture = CreateFromIcon(icon, copy);
34
public static ComScope<
IPicture
> CreateFromIcon(IIcon icon, bool copy)
37
ComScope<
IPicture
> picture = new(null);
38
PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<
IPicture
>(), fOwn: copy, picture).ThrowOnFailure();
System.Windows.Forms (6)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
41
using var picture = ComScope<
IPicture
>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr);
120
using ComScope<
IPicture
> picture = new(null);
121
PInvokeCore.OleCreatePictureIndirect(&pictdesc, IID.Get<
IPicture
>(), own, picture).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
118
else if (guid.Equals(IID.GetRef<IPictureDisp>()) || guid.Equals(IID.GetRef<
IPicture
>()))
System\Windows\Forms\Input\Cursor.cs (2)
405
using ComScope<
IPicture
> picture = new(null);
406
PInvokeCore.OleCreatePictureIndirect(lpPictDesc: null, IID.Get<
IPicture
>(), fOwn: true, picture).ThrowOnFailure();
System.Windows.Forms.Primitives (1)
System\Drawing\ImageExtensions.cs (1)
85
public static Image? ToImage(
IPicture
* picture)
System.Windows.Forms.Tests (12)
System\Windows\Forms\AxHostTests.cs (6)
1586
IPicture
.Interface iPicture = (
IPicture
.Interface)SubAxHost.GetIPictureFromCursor(original);
1671
IPicture
.Interface iPicture = (
IPicture
.Interface)SubAxHost.GetIPictureFromPicture(original);
1700
IPicture
.Interface iPicture = (
IPicture
.Interface)SubAxHost.GetIPictureFromPicture(original);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (6)
143
using ComScope<
IPicture
> picture = ComScope<
IPicture
>.QueryFrom((IUnknown*)native);
164
using ComScope<
IPicture
> picture = ComScope<
IPicture
>.QueryFrom((IUnknown*)native);
191
private unsafe class IPictureMock :
IPicture
.Interface, IManagedWrapper<
IPicture
>