IInkPicture::put_SizeMode method (msinkaut.h)

Gets or sets how the InkPicture control handles image placement and sizing.

This property is read/write.

Syntax

HRESULT put_SizeMode(
  InkPictureSizeMode smNewSizeMode
);

Parameters

smNewSizeMode

Return value

None

Remarks

Valid values for this property are taken from the InkPictureSizeMode enumeration. By default, in IPSM_Normal mode, the picture is positioned in the upper-left corner of the InkPicture control, and any part of the image too big for the InkPicture control is clipped. Using the IPSM_StretchImage value causes the picture to stretch to fit the control.

Using the IPSM_AutoSize value causes the control to resize to always fit the picture. Using the IPSM_CenterImage value causes the picture to be centered in the control.

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

IInkPicture

InkPicture

InkPictureSizeMode