Solved

VIewPort under win32 GDI

Posted on 1998-11-05
1
871 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
1 Comment
 
LVL 2

Accepted Solution

by:
trillo earned 50 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now