InputPicture Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPTextCursor

Declaration

function InputPicture(const Picture: IUnknown; Width: Integer; Height: Integer): Integer;

Description

Insert a picture

Parameters

Picture

If you use the OCX you can use any IPicture reference.

When using .NET convert an "Image" using the Image2Picture class: TextCursor.InputPicture(new WPDynamic.Image2Picture(pictureBox1.Image),0,0);

Width

0 or the desired width in twips

Height

0 or the desired height in twips

Returns

0 if not successful. Otherwise the interface CurrObj can be used to change imaget properties.

Category

Image Support


[idh_iwptextcursor_inputpicture.htm]    Copyright © 2007 by WPCubed GmbH