Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VIewPort under win32 GDI

Posted on 1998-11-05
1
Medium Priority
?
916 Views
Last Modified: 2011-04-14
i would i concrete example of how to use the
setViewPortOrg, SetViewPortExtEx under windows...

with the  SetMapMode ( hDC,MM_ISOTROPIC);

how to use it, and what are the step to modified it
0
Comment
Question by:ct_consultant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
trillo earned 100 total points
ID: 1177075
Hi
First of all you should know the relation between the logical coordinates and the device coordinates (pixels).
For example if you have a DC that is 20 x 20 pixels, and you would like it to be, lets say, 50 x 50 units (for your personal purpose) you should specify something like:

SetViewportExtEx (hDC, 20, 20, NULL);
SetWindowExtEx (hDC, 50, 50, NULL);

You can set or offset the origin either in the window (logical coordinates) or in the viewPort (device coordinates) or in both.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question