GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
Go Back  Xtreme Visual Basic Talk > > > GDIPLUS: how draw a rectangle using X,Y and Z coordenates?


Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2017, 02:38 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default GDIPLUS: how draw a rectangle using X,Y and Z coordenates?


using GDIPLUS, how we can draw a rectangle using X,Y and Z coordenates?
Reply With Quote
  #2  
Old 06-05-2017, 04:02 PM
passel's Avatar
passelGDIPLUS: how draw a rectangle using X,Y and Z coordenates? passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,028
Default

You can't directly. GDI+ doesn't support 3D drawing for the most part.
You would have to convert the 3D coordinates into a 2D representation of the 3D coordinates, and then draw using those 2D coordinates.

For example, I did some primitive 3D drawing in QBasic and early Visual Basic.
An example of a VB6 project testing out some basic concept of drawing 3d rectangles (as the faces of 3D blocks) can be found here, post #2.
That was back in 2005.

Some years later I got started with VB.Net.
Around 2013 I decided to drop that VB6 code into a VB 2010 project and change it to use the VB.Net provided GDI+ wrapped methods instead of the GDI API used in the VB6 code just to see how it would perform.
I wouldn't say that it is good .Net code since it is really old legacy VB code minimally modified, and is only test code at that, not production code.

In the .Net version, the A and Z keys still tilt the view, but now the I,J,K,L keys are used to move through and rotate the view.
I don't know it the code will help you understand the use of the Z coordinate any better, but something to look at and play with may be better than nothing.

You could also look at this thread which is a long exploration of the 3D drawing with GDI+ topic.
Attached Files
File Type: zip matrix3port.zip (29.8 KB, 7 views)
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote
Reply

Tags
coordenates, draw, gdiplus, rectangle, x, y


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates? GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
 
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
GDIPLUS: how draw a rectangle using X,Y and Z coordenates?
 
-->