InputPicture Method

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

Applies to

IWPTextCursor

Declaration

int InputPicture(IUnknown Picture, int Width, int Height);

Description

Insert a picture. If you use the OCX you can use any IPicture reference.

 

Please also see InputPictureStream which is useful to insert dynamically created images.

 

When using .NET convert an "Image" using the Image2Picture class: TextCursor.InputPicture(new WPDynamic.Image2Picture(pictureBox1.Image),0,0) to get a reference usable for the "Picture" parameter.

 

Parameters

Picture : IPicture reference, or, with .NET, instance of WPDynamic.Image2Picture.

Width: 0 or the desired width in twips (= 1/1440 inch)

Height : 0 or the desired height in twips

Tip

To create a text box use IWPTextCursor.InputTextbox. (Requires premium license)

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