SPONSORS:






User Tag List

Results 1 to 4 of 4

Thread: Testing Zoom

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Testing Zoom

    Within my windows application, I can for example zoom 50%, 75% 100% on a document.

    What is the best way to test that the document is actually being zoomed?

    The approach I have taken is to use CaptureBitmap ("graph.bmp"). This captured the document at all zoom percentages.

    Then I use SYS_CompareBitmap, where I compared the captured bitmap to an original bitmap.

    This is very time consuming as I have to first capture the bitmap, and then compare it. Also, I don't like using bitmaps for validation, because if I change the screen colour resolution, the test case will fail.

    Does anyone have a better approach rather than using bitmaps?

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  2. #2
    Member
    Join Date
    Aug 2001
    Location
    Ireland
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing Zoom

    Why not try the GetFontSize method. You can find this in the help file.

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing Zoom

    GetFontSize () isn't working. Any other suggestions...

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  4. #4
    Guest

    Re: Testing Zoom

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Why not try the GetFontSize method<HR></BLOCKQUOTE>

    For a typical zoom or magnify implementation, GetFontSize will still return the same value irrespective of the percentage of magnification. It is not the font size that is being changed, it is the scaling of the graphic viewport that is changed.

    ------------------
    Tony Mrozinski
    Sr. Software Test Automation Engineer
    Residential Access Division
    Intel Corporation

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:44 AM.

Copyright BetaSoft Inc.