If your bitmap is stored as 72 dots per inch, then each pixel of the bitmap
will be equivalent to one document point in a GenView. So to set the size of
a GenView, perform these steps:
- - Set document bounds in GenView, GVI_docBounds, by calling
MSG_GEN_VIEW_SET_DOC_BOUNDS.
- - Set the view to be no smaller than the content, by setting the
GVDA_NO_SMALLER_THAN_CONTENT on both the GVI_horizAttrs and GVI_vertAttrs.
- - Be sure your GenView and content object are communicating, that way the
view maintains it's size. See the HELLO sample for an example of properly
connecting the view and content.
If you should change the scale factor on the view, you will get a change in
the pixel to point ratio. For instance, if you zoom in, the pixels will
appear much larger than "Normal Size". You can see this in GeoDraw or my Draw
program for the Zoomer and OmniGo.
nathan