Platform SDK: Agent

IAgentCharacter::SetSize

HRESULT SetSize(
   long * lWidth,  // width of the character frame
   long * lHeight  // height of the character frame
);

Sets the size of the character's animation frame.

lWidth
The width of the character's animation frame in pixels.
lHeight
The height of the character's animation frame in pixels.

Changing the character's frame size scales the character to the size set with this method. This property's setting applies to all clients of the character.

Even though the character appears in an irregularly shaped region window, the location of the character is based on its rectangular animation frame.

See Also

IAgentCharacter::GetSize