Click here to Skip to main content
15,920,031 members
Home / Discussions / Graphics
   

Graphics

 
Questionfill in the polygon Pin
Member 33753346-Mar-09 8:46
Member 33753346-Mar-09 8:46 
QuestionFullScreen DirectX Pin
fua6-Mar-09 7:34
fua6-Mar-09 7:34 
QuestionLarge cursors crash webex Pin
priyapradeep5-Mar-09 23:26
priyapradeep5-Mar-09 23:26 
AnswerRe: Large cursors crash webex Pin
Dave Kreskowiak6-Mar-09 3:32
mveDave Kreskowiak6-Mar-09 3:32 
QuestionBoundary Fill function assistance needed [modified] Pin
Member 33753345-Mar-09 15:30
Member 33753345-Mar-09 15:30 
AnswerRe: Boundary Fill function assistance needed Pin
Tim Craig5-Mar-09 18:56
Tim Craig5-Mar-09 18:56 
GeneralRe: Boundary Fill function assistance needed Pin
Member 33753345-Mar-09 18:59
Member 33753345-Mar-09 18:59 
GeneralRe: Boundary Fill function assistance needed Pin
Tim Craig5-Mar-09 22:25
Tim Craig5-Mar-09 22:25 
AnswerRe: Boundary Fill function assistance needed Pin
DanB19836-Mar-09 3:14
DanB19836-Mar-09 3:14 
AnswerRe: Boundary Fill function assistance needed Pin
supercat918-Mar-09 12:25
supercat918-Mar-09 12:25 
Questionabout the drawarea tool Pin
Nilam Dalvi4-Mar-09 23:00
Nilam Dalvi4-Mar-09 23:00 
GeneralEdit background on animated GIF [modified] Pin
Brady Kelly4-Mar-09 7:59
Brady Kelly4-Mar-09 7:59 
GeneralRe: Edit background on animated GIF Pin
M@dHatter4-Mar-09 8:04
M@dHatter4-Mar-09 8:04 
GeneralRe: Edit background on animated GIF Pin
Brady Kelly4-Mar-09 8:46
Brady Kelly4-Mar-09 8:46 
GeneralRe: Edit background on animated GIF Pin
M@dHatter4-Mar-09 8:53
M@dHatter4-Mar-09 8:53 
GeneralRe: Edit background on animated GIF Pin
Brady Kelly4-Mar-09 9:25
Brady Kelly4-Mar-09 9:25 
GeneralRe: Edit background on animated GIF Pin
Drew Stainton4-Mar-09 8:18
Drew Stainton4-Mar-09 8:18 
GeneralRe: Edit background on animated GIF Pin
Hans Dietrich4-Mar-09 8:25
mentorHans Dietrich4-Mar-09 8:25 
GeneralRe: Edit background on animated GIF Pin
mariahayek23-Apr-09 1:00
mariahayek23-Apr-09 1:00 
Questiondraw polygon using only two vertices Pin
Member 33753344-Mar-09 3:13
Member 33753344-Mar-09 3:13 
QuestionMap Wrapping Pin
Jim Warburton1-Mar-09 9:28
Jim Warburton1-Mar-09 9:28 
AnswerRe: Map Wrapping Pin
Pete O'Hanlon1-Mar-09 9:36
mvePete O'Hanlon1-Mar-09 9:36 
GeneralRe: Map Wrapping Pin
Jim Warburton1-Mar-09 10:54
Jim Warburton1-Mar-09 10:54 
GeneralRe: Map Wrapping Pin
Luc Pattyn1-Mar-09 11:23
sitebuilderLuc Pattyn1-Mar-09 11:23 
Hi,

I don't see where the problem could be (unless you hope to solve this with a PictureBox Big Grin | :-D ). Here are some thoughts, they may not be optimal, just intended to show a possible way:

1.
if you have an image of the world (say from longitude 0 to long 360), then you need to paint it in two steps, first from your starting longitude x0 upto 360, then from 0 to the right border (x0 again). So calling some overload of Graphics.DrawImage twice should do it.

An altenative is to construct a double-sized image once (that is from 0 to 360 and again from 0 to 360)
and then paint the right part of it.

2.
if you are drawing the world yourself, you can draw it in the regular way, you only need to adjust the x coordinate and again tranform the longitudes [0,360) to [x0...360, 0...x0).

This by itself could be handled by modifying all x coordinates; or more easily by having your paint code execute twice, once with a translation that takes care of the left part so [0, x0) gets clipped of at the left, and once with a translation that takes care of the right part so [x0, 360) gets clipped of at the right.


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Map Wrapping Pin
Jim Warburton1-Mar-09 12:28
Jim Warburton1-Mar-09 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.