FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Methods

SetZoomRect

Description

Zoom in on a rectangular area of the movie. Note that the units of the coordinates are in twips (1440 units per inch). To calculate a rectangle in Flash, set the ruler units to Points and multiply the coordinates by 20 to get TWIPS.

Message

FPCM_SETZOOMRECT

Structure

struct SFPCSetZoomRect
{    
     // [in]
     long left;
     // [in]
     long top;
     // [in]
     long right;
     // [in]
     long bottom;

     // [out]
     HRESULT hr;
};

Example

void InvokeSetZoomRect(HWND hwndFlashPlayerControl, long left, long top, long right, long bottom)
{
     SFPCSetZoomRect info;

     info.left = left;
     info.top = top;
     info.right = right;
     info.bottom = bottom;

     ::SendMessage(hwndFlashPlayerControl, FPCM_SETZOOMRECT, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          // ...
     }
}

Flash versions

5: supported
6: supported
7: supported


Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.