113 references to IPicture
System.Private.Windows.Core (89)
_generated\154\Windows.Win32.IPicture.g.cs (67)
27 :winmdroot.IVTable<IPicture,IPicture.Vtbl>,IComIID { 44 return ((delegate *unmanaged [Stdcall]<IPicture*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IPicture*)Unsafe.AsPointer(ref this), riid, ppvObject); 49 return ((delegate *unmanaged [Stdcall]<IPicture*,uint>)lpVtbl[1])((IPicture*)Unsafe.AsPointer(ref this)); 54 return ((delegate *unmanaged [Stdcall]<IPicture*,uint>)lpVtbl[2])((IPicture*)Unsafe.AsPointer(ref this)); 71 private static winmdroot.Foundation.HRESULT get_Handle(IPicture* pThis, winmdroot.System.Ole.OLE_HANDLE* pHandle) 100 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IPicture*)Unsafe.AsPointer(ref this), pHandle); 117 private static winmdroot.Foundation.HRESULT get_hPal(IPicture* pThis, winmdroot.System.Ole.OLE_HANDLE* phPal) 146 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IPicture*)Unsafe.AsPointer(ref this), phPal); 163 private static winmdroot.Foundation.HRESULT get_Type(IPicture* pThis, winmdroot.System.Ole.PICTYPE* pType) 191 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPicture*)Unsafe.AsPointer(ref this), pType); 208 private static winmdroot.Foundation.HRESULT get_Width(IPicture* pThis, int* pWidth) 236 return ((delegate *unmanaged [Stdcall]<IPicture*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPicture*)Unsafe.AsPointer(ref this), pWidth); 253 private static winmdroot.Foundation.HRESULT get_Height(IPicture* pThis, int* pHeight) 281 return ((delegate *unmanaged [Stdcall]<IPicture*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IPicture*)Unsafe.AsPointer(ref this), pHeight); 298 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) 335 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); 341 private static winmdroot.Foundation.HRESULT set_hPal(IPicture* pThis, winmdroot.System.Ole.OLE_HANDLE hPal) 367 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IPicture*)Unsafe.AsPointer(ref this), hPal); 384 private static winmdroot.Foundation.HRESULT get_CurDC(IPicture* pThis, winmdroot.Graphics.Gdi.HDC* phDC) 413 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IPicture*)Unsafe.AsPointer(ref this), phDC); 433 private static winmdroot.Foundation.HRESULT SelectPicture(IPicture* pThis, winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut) 460 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); 477 private static winmdroot.Foundation.HRESULT get_KeepOriginalFormat(IPicture* pThis, winmdroot.Foundation.BOOL* pKeep) 505 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IPicture*)Unsafe.AsPointer(ref this), pKeep); 511 private static winmdroot.Foundation.HRESULT put_KeepOriginalFormat(IPicture* pThis, winmdroot.Foundation.BOOL keep) 536 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IPicture*)Unsafe.AsPointer(ref this), keep); 542 private static winmdroot.Foundation.HRESULT PictureChanged(IPicture* pThis) 566 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IPicture*)Unsafe.AsPointer(ref this)); 583 private static winmdroot.Foundation.HRESULT SaveAsFile(IPicture* pThis, winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize) 610 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); 627 private static winmdroot.Foundation.HRESULT get_Attributes(IPicture* pThis, uint* pDwAttr) 658 return ((delegate *unmanaged [Stdcall]<IPicture*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IPicture*)Unsafe.AsPointer(ref this), pDwAttr); 684 internal delegate *unmanaged [Stdcall]<IPicture*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 686 internal delegate *unmanaged [Stdcall]<IPicture*,uint> AddRef_2; 688 internal delegate *unmanaged [Stdcall]<IPicture*,uint> Release_3; 690 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> get_Handle_4; 692 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> get_hPal_5; 694 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT> get_Type_6; 696 internal delegate *unmanaged [Stdcall]<IPicture*,int* ,winmdroot.Foundation.HRESULT> get_Width_7; 698 internal delegate *unmanaged [Stdcall]<IPicture*,int* ,winmdroot.Foundation.HRESULT> get_Height_8; 700 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; 702 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE ,winmdroot.Foundation.HRESULT> set_hPal_10; 704 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT> get_CurDC_11; 706 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> SelectPicture_12; 708 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_KeepOriginalFormat_13; 710 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_KeepOriginalFormat_14; 712 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Foundation.HRESULT> PictureChanged_15; 714 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT> SaveAsFile_16; 716 internal delegate *unmanaged [Stdcall]<IPicture*,uint* ,winmdroot.Foundation.HRESULT> get_Attributes_17;
_generated\253\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)
36using ComScope<IPicture> picture = icon.CreateIPicture(copy); 40internal static ComScope<IPicture> CreateIPicture(this IIcon icon, bool copy) 43ComScope<IPicture> picture = new(null); 44PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (5)
62using ComScope<IPicture> picture = image.CreateIPicture(); 63return (IPicture.Interface)ComHelpers.GetObjectForIUnknown(picture); 66public static ComScope<IPicture> CreateIPicture(this IPointer<GpImage> image) 69ComScope<IPicture> picture = new(null); 70PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
Windows\Win32\System\Ole\IPicture.cs (8)
15using ComScope<IPicture> picture = CreateFromImage(image); 19public static ComScope<IPicture> CreateFromImage(IPointer<GpImage> image) 22ComScope<IPicture> picture = new(null); 23PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure(); 30using ComScope<IPicture> picture = CreateFromIcon(icon, copy); 34public static ComScope<IPicture> CreateFromIcon(IIcon icon, bool copy) 37ComScope<IPicture> picture = new(null); 38PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
System.Windows.Forms (6)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
41using var picture = ComScope<IPicture>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr); 120using ComScope<IPicture> picture = new(null); 121PInvokeCore.OleCreatePictureIndirect(&pictdesc, IID.Get<IPicture>(), own, picture).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
118else if (guid.Equals(IID.GetRef<IPictureDisp>()) || guid.Equals(IID.GetRef<IPicture>()))
System\Windows\Forms\Input\Cursor.cs (2)
405using ComScope<IPicture> picture = new(null); 406PInvokeCore.OleCreatePictureIndirect(lpPictDesc: null, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
System.Windows.Forms.Primitives (1)
System\Drawing\ImageExtensions.cs (1)
85public static Image? ToImage(IPicture* picture)