Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27061

Set orgin of graphics via SetMapMode + Himetric??

$
0
0
Hi,

I am dooing an engineering application and I need to draw some objects. It MUST have an origin in a bottom left corner, not in upper left (the deault setting of GDI).

Currently, I have to recalculate everything and it generates a lot of unnessessary code. Thus, I'd like to use SetMapMode+Himetric, but I can't find a single example in VB.NET how to use it.

I have this graphical structure:
Code:

Bitmap1 = New Bitmap(Me.PictureBox1.Width, Me.PictureBox1.Height)
picture1 = Graphics.FromImage(Bitmap1)
picture1.drawline(.....)
picture1.drawrectangle(.....)
picture1.drawarc(.....)
Me.PictureBox1.Image = Bitmap1

How to use the HiMetric? And where - on the Picture1?

Thanks in advance for your suggestions.

Viewing all articles
Browse latest Browse all 27061


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>