inm logo
Corporate Website | Contact | Store | Support | Login  

View categorized listing of all common frequently asked questions.
View our categorized library of downloads for all necessary manuals, software, etc.
 Article Options
Support Center » Knowledgebase » INM Impressario for Director » How to speed up panning and scrolling
Support Page Banner
 How to speed up panning and scrolling
INM Impressario Windows, Macintosh   Versions 2.x-3.x


If your PDF documents are heavy with images and/or vector graphics, you can gain some speed by turning off the anti-aliasing while you are moving the PDF within the sprite (using the Hand tool, or using the scroll arrows).  


Place a behavior on your Impressario sprite, which calls IMP_SetSmoothing([#SmoothImages:False, #SmoothLineArt:False]) on the mouseDown event, to turn off the anti-aliasing of bitmaps and line art when the user holds down the Hand tool or the scroll button.  Then call IMP_SetSmoothing([#SmoothImages:True, #SmoothLineArt:True]) when the mouse is released.


-- Script for QuickDraw behavior, attached to Impressario sprite

on mouseDown me
-- turn off the smoothing (anti-aliasing)
   IMP_SetSmoothing([#SmoothImages:False, #SmoothLineArt:False])
end mouseDown

on mouseUp me
-- turn on the smoothing (anti-aliasing)
   IMP_SetSmoothing([#SmoothImages:True, #SmoothLineArt:True])
end mouseUp


Article Details
Article ID: 120
Created On: 17 Jan 2007 02:07 PM

 This answer was helpful  This answer was not helpful

inm general footer
Services Xtras Go Products Support Gallery Store Download About Us Contact Newsroom