Solved

How to draw concentric circle?

Posted on 2002-04-28
3
2,369 Views
Last Modified: 2013-11-20
I want to draw concentric circle with hatching inside
the ring structure. I mean to say,
I can draw concentric circle with hatching inside the circle but i want hatching only the area between outer circle and inner circle not the area occured by both circle.
 waiting for reply
please answer it AEAP.
thanking you
0
Comment
Question by:unisoftsystems
3 Comments
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 6975211
Hi!
You can create region from these two circles (ellipses) and fill it by hatched brush. For example:

{
/* assume dc is the CDC class object where you want to
display your image.
*/
CRgn rgnOne;
CRgn rgnTwo;
DRgn rgnRes;
rgnOne.CreateEllipticRgn(0, 0, 100, 100);
rgnTwo.CreateEllipticRgn(25, 25, 75, 75);
rgnRes.CombineRgn(&rgnOne, &rgnTwo, RGN_DIFF );
CBrush brHatch(HS_BDIAGONAL, RGB(255,0,0));
dc.FillRgn(&rgnRes, &brHatch);
}
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

20 Experts available now in Live!

Get 1:1 Help Now