Expand my Community achievements bar.

Using relative positions/sizes for objects drawn in SharedWhiteBoard component

Avatar

Level 2

What's the recommended approach to change the way the WhiteBoard component draws its shapes? My scenario: I'm using the SharedWhiteBoard component as an overlay inside of other UIComponents (Flex 4.1), so the user can draw on top of video, graphics, etc. But, my container is resizable, and the content scales to fit the container. In the case of a video, I want to essentially position the whiteboard's corners to match the video's corners, but I'd like to adjust scale too. Can I do this all by just affecting the outermost container of the SharedWhiteBoard itself?

-Robert

1 Reply

Avatar

Employee

Hi Robert,

I am not sure if this API would help, but give it a shot though.

_sharedWhiteBoard.zoomLevel(changedContainerWidth/OriginalContainerWidth);

Thanks

Arun