|
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
F-IN-BOX DLL Edition Help >> 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
[ C++ ]
FPCM_SETZOOMRECT Structure
[ C++ ]
struct SFPCSetZoomRect
{
// [in]
long left;
// [in]
long top;
// [in]
long right;
// [in]
long bottom;
// [out]
HRESULT hr;
};
Example
[ C++ ]
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
3: supported
4: supported 5: supported 6: supported 7: supported 8: supported 9: supported Copyright © Softanics. All rights reserved. F-IN-BOX is a trademark of Softanics. Macromedia and Shockwave Flash are trademarks of Adobe
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|