stdole_Picture
Namespace: PPJ.Runtime.Com
Assembly: PPJ.Web.50 (5.0.0.0)
Wraps the standard OLE picture automation interface using SAL values.
- C#
- VB.NET
public class stdole_Picture : SalObject
Public Class stdole_Picture
Inherits SalObject
Attach an appropriate COM object before accessing interface properties.
Example:
using PPJ.Runtime.Com;
using (var value = new stdole_StdPicture())
{
if (value.Create())
System.Console.WriteLine(value.IsDispatchValid());
}
Constructors
stdole_Picture()
Initializes a new instance of stdole_Picture.
Fields
| Name | Type | Description | Value |
|---|---|---|---|
| _Interface | COMInterface | The typed OLE automation interface attached to this wrapper. |
Methods
PropGetHandle(returnValue)
Reads the native picture handle from the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| returnValue | SalNumber | Receives the native picture handle. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropGetHeight(returnValue)
Reads the picture height in HIMETRIC units from the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| returnValue | SalNumber | Receives the picture height in HIMETRIC units. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropGethPal(returnValue)
Reads the palette handle from the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| returnValue | SalNumber | Receives the palette handle. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropGetType(returnValue)
Reads the picture type code from the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| returnValue | SalNumber | Receives the picture type code. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropGetWidth(returnValue)
Reads the picture width in HIMETRIC units from the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| returnValue | SalNumber | Receives the picture width in HIMETRIC units. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropSetHandle(Handle)
Assigns the native picture handle on the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| Handle | SalNumber | The native picture handle to assign. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropSetHeight(Height)
Assigns the picture height in HIMETRIC units on the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| Height | SalNumber | The picture height in HIMETRIC units to assign. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropSethPal(hPal)
Assigns the palette handle on the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| hPal | SalNumber | The palette handle to assign. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropSetType(Type)
Assigns the picture type code on the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| Type | SalNumber | The picture type code to assign. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
PropSetWidth(Width)
Assigns the picture width in HIMETRIC units on the attached OLE interface.
| Parameter | Type | Description |
|---|---|---|
| Width | SalNumber | The picture width in HIMETRIC units to assign. |
Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.
Render(hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds)
Renders a source region of the OLE picture into a destination device context.
| Parameter | Type | Description |
|---|---|---|
| hdc | SalNumber | The destination device context handle. |
| x | SalNumber | The destination left coordinate in device-context units. |
| y | SalNumber | The destination top coordinate in device-context units. |
| cx | SalNumber | The destination width in device-context units. |
| cy | SalNumber | The destination height in device-context units. |
| xSrc | SalNumber | The source left coordinate in HIMETRIC units. |
| ySrc | SalNumber | The source top coordinate in HIMETRIC units. |
| cxSrc | SalNumber | The source width in HIMETRIC units. |
| cySrc | SalNumber | The source height in HIMETRIC units. |
| prcWBounds | SalNumber | The bounds pointer value passed to the COM interface as a 32-bit integer. |
Returns: SalBoolean. True after the COM call succeeds; false when a COM error is recorded with automatic error propagation disabled.
Inherited By
| Name | Description |
|---|---|
| stdole_StdPicture | Wraps the standard OLE picture coclass for activation and SAL-compatible access. |