SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    Re: Testing Zoom

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

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

  4. #4
    Points for Confirmed Friends
    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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:00 AM.

Copyright BetaSoft Inc.