Thread: getting the document on one screen

  1. #1
    swordfish
    Guest

    getting the document on one screen

    i've created a document that is the size of an a3 page and does not fit into one screen. Do you know how I would fit it on one screen(so there would be no need for scrolling)?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    There is very little information here to go on. If this document is a bitmap, or you can get it into one, then you can blit it to the screen device context using the StretchBlt() API which enable you to expand or compress images. Obiously, you will have resolution problems.

    Other scaling features you could investigate are ViewPorts/Mapping Modes, or WorldTransforms. I'm not sure if these are supported in the early versions of Windows.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Use

    StretchBlt();

    Get the client area of your screen and use this as the destination.
    To improve the quality of the output use

    SetStretchBltMode(hdc,HALFTONE);

    I use two DC's in my WIN32 API programs print preview.
    One is full size and one is screen size. They are both passed as a parameter to the functions that assemble the print. Information about the font sizes, line widths is also passed. ie a structure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM