<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

IPicture

public static void PopulateVTable(Vtbl* vtable)

public uint AddRef()

public HRESULT get_Attributes(UInt32* pDwAttr)

Retrieves the current set of the picture's bit attributes.

public HRESULT get_CurDC(HDC* phDC)

Retrieves the handle of the current device context. This property is valid only for bitmap pictures.

public HRESULT get_Handle(OLE_HANDLE* pHandle)

Retrieves the handle to the picture managed within this picture object to a specified location.

public HRESULT get_Height(Int32* pHeight)

Retrieves the current height of the picture in the picture object.

Retrieves a copy of the palette currently used by the picture object.

Retrieves the current value of the picture's KeepOriginalFormat property.

public HRESULT get_Type(PICTYPE* pType)

Retrieves the current type of the picture contained in the picture object.

public HRESULT get_Width(Int32* pWidth)

Retrieves the current width of the picture in the picture object.

Notifies the picture object that its picture resource has changed. This method only calls IPropertyNotifySink::OnChanged with DISPID_PICT_HANDLE for any connected sinks.

Sets the value of the picture's KeepOriginalFormat property.

public HRESULT QueryInterface(Guid* riid, Void** ppvObject)

public uint Release()

public HRESULT Render(HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, RECT* pRcWBounds)

Renders (draws) a specified portion of the picture defined by the offset (xSrc,ySrc) of the source picture and the dimensions to copy (cxSrc,xySrc).

public HRESULT SaveAsFile(IStream* pStream, BOOL fSaveMemCopy, Int32* pCbSize)

Saves the picture's data into a stream in the same format that it would save itself into a file. Bitmaps use the BMP file format, metafiles the WMF format, and icons the ICO format.

public HRESULT SelectPicture(HDC hDCIn, HDC* phDCOut, OLE_HANDLE* phBmpOut)

Selects a bitmap picture into a given device context, and returns the device context in which the picture was previously selected as well as the picture's GDI handle. This method works in conjunction with IPicture::get_CurDC.

Assigns a GDI palette to the picture contained in the picture object.