IPicture
Retrieves the current set of the picture's bit attributes.
Retrieves the handle of the current device context. This property is valid only for bitmap pictures.
Retrieves the handle to the picture managed within this picture object to a specified location.
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.
Retrieves the current type of the picture contained in the picture object.
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 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).
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.
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.