Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



DMap Editor - Drawing Methode.

Discussion on DMap Editor - Drawing Methode. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
DMap Editor - Drawing Methode.

How can I draw on the picturebox, I'm using for the DMap editor?
Tried alot now, but still dosn't wants to do it.

This is what I tried:
Code:
            Graphics Grahpic = CreateGraphics();
            Pen Pen = new Pen(Color.White, int.Parse(textBox1.Text));
            Grahpic.DrawRectangle(Pen, 10, 10, 50, 50);
And yea, I have 0 experience really with such things ><
Syst3m_W1z4rd is offline  
Old 01/10/2011, 13:08   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The graphic that your drawing to has to be associated with the picturebox, i beleive theres a method you can use from the picturebox in order to get the graphics object you need.
Korvacs is offline  
Thanks
1 User
Old 01/10/2011, 17:45   #3
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
PHP Code:
Bitmap bmp = new Bitmap(100100);
Graphics gfx Graphics.FromImage(bmp);
gfx.FillRectangle(new SolidBrush(Color.Black), 552020);
pictureBox.Size bmp.Size;
pictureBox.Image bmp
gabrola is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
System.Drawing
07/08/2010 - CO2 Programming - 9 Replies
Not strong in this :L Not good with Forms, Events and system.Drawing Im making a key event draw a new Rectangle when the key is (Down) is pressed, but its not drawing a new rectangle when i press down continuously: private void Form1_KeyDown(object sender, KeyEventArgs e) { Graphics GE = Graphics.FromHwnd(this.Handle); Pen PE = new Pen(Color.Black); Rectangle NE = new Rectangle(15, 15, 20, 50);
SRO related drawing
01/19/2008 - Silkroad Online - 6 Replies
I am making a drawing of a Glaiver, I was just bored and wanted to get peoples opinion, it does not use any of the sro armor, I made up my own items, the glaive is somewhat like the level 100 glaive. http://img147.imageshack.us/img147/4301/scannedim agedl3.th.jpg Leave a comment. :) It is still a drawing in progress, not done yet. Quality is really low in imageshack, I do not know any other place. Download attachment, maybe it has better details...



All times are GMT +1. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.