Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mr jets

@mr jets
About
Posts
50
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Read from text file
    M mr jets

    u are right mr Graus ..i just wanna to thank u specially for ur effort with me ..god bless u my brother ; its the last time to ask about this project ..i swear . cheers;);

    Visual Basic visual-studio graphics tutorial question career

  • Read from text file
    M mr jets

    do u mean like that : if(openFileDialog1.ShowDialog()==DialogResult.OK) { StreamReader streamReader=new StreamReader(openFileDialog1.FileName); string m=streamReader.ReadToEnd(); string []x= m.Split(); MessageBox.Show(m); streamReader.Close(); } but this displays all the data in the file even after putting commas between data like 1 23 38 0 0 0 1 ,2.... iam lost !:confused:

    Visual Basic visual-studio graphics tutorial question career

  • Read from text file ..!
    M mr jets

    i didnt get any usefull answer ..plzz i will appreciate any helppp !;)

    Graphics graphics tutorial question career

  • Read from text file
    M mr jets

    heloo guys.. u really doing agreat job ..any way i have created strings for each shape (lines,polygons,..) each string contains informations about the shape( x1,y1,x2,y2,R,G,B,pen width) ..Now how can i make my prog read from the text and draw the shapes ..as example the line string : public void AddSv(Line l , ref string str) { if(drawwhat==1)// as one means lines str +="1"+"\n"+l.First.X.ToString()+"\n"+ l.First.Y.ToString()+"\n"+ l.Second.X.ToString()+"\n"+ l.Second.Y.ToString()+"\n"+ l.Pen.Color.R.ToString()+"\n"+ l.Pen.Color.G.ToString()+"\n"+ l.Pen.Color.B.ToString()+"\n"+ l.Pen.Width.ToString()+"\n\n"; after i draw the line i click on save to send the informations to the text : private void button1_Click(object sender, System.EventArgs e) { //save System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); streamWriter.WriteLine(LineSv); streamWriter.Flush(); streamWriter.Close(); fs.Close(); }as u can see i dealing vs 2003 . Regards;;)

    Visual Basic visual-studio graphics tutorial question career

  • Read from text file..!
    M mr jets

    thanks..but iam looking for the idea to make it reads line by line and draw the line ..should i use split fuction..or if condition..iam LOST!!:confused:

    C# graphics tutorial question career

  • Read from text file..!
    M mr jets

    heloo guys..thanks alot u really doing agreat job ..any way i have finally created strings for each shape (lines,polygons,..) each string contains informations about the shape( x1,y1,x2,y2,R,G,B,pen width) ..Now how can i make my prog read from the text and draw the shapes ..as example the line string : public void AddSv(Line l , ref string str) { if(drawwhat==1)// as one means lines str +="1"+"\n"+l.First.X.ToString()+"\n"+ l.First.Y.ToString()+"\n"+ l.Second.X.ToString()+"\n"+ l.Second.Y.ToString()+"\n"+ l.Pen.Color.R.ToString()+"\n"+ l.Pen.Color.G.ToString()+"\n"+ l.Pen.Color.B.ToString()+"\n"+ l.Pen.Width.ToString()+"\n\n"; after i draw the line i click on save to send the informations to the text : private void button1_Click(object sender, System.EventArgs e) { //save System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); streamWriter.WriteLine(LineSv); streamWriter.Flush(); streamWriter.Close(); fs.Close(); } Regards;P;

    C# graphics tutorial question career

  • Read from text file ..!
    M mr jets

    heloo guys..thanks alot u really doing agreat job ..any way i have finally created strings for each shape (lines,polygons,..) each string contains informations about the shape( x1,y1,x2,y2,R,G,B,pen width) ..Now how can i make my prog read from the text and draw the shapes ..as example the line string : public void AddSv(Line l , ref string str) { if(drawwhat==1)// as one means lines str +="1"+"\n"+l.First.X.ToString()+"\n"+ l.First.Y.ToString()+"\n"+ l.Second.X.ToString()+"\n"+ l.Second.Y.ToString()+"\n"+ l.Pen.Color.R.ToString()+"\n"+ l.Pen.Color.G.ToString()+"\n"+ l.Pen.Color.B.ToString()+"\n"+ l.Pen.Width.ToString()+"\n\n"; after i draw the line i click on save to send the informations to the text : private void button1_Click(object sender, System.EventArgs e) { //save System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); streamWriter.WriteLine(LineSv); streamWriter.Flush(); streamWriter.Close(); fs.Close(); } Regards;);

    Graphics graphics tutorial question career

  • Read from text file ..!!
    M mr jets

    heloo guys..thanks alot u really doing agreat job ..any way i have finally created strings for each shape (lines,polygons,..) each string contains informations about the shape( x1,y1,x2,y2,R,G,B,pen width) ..Now how can i make my prog read from the text and draw the shapes ..as example the line string : public void AddSv(Line l , ref string str) { if(drawwhat==1)// as one means lines str +="1"+"\n"+l.First.X.ToString()+"\n"+ l.First.Y.ToString()+"\n"+ l.Second.X.ToString()+"\n"+ l.Second.Y.ToString()+"\n"+ l.Pen.Color.R.ToString()+"\n"+ l.Pen.Color.G.ToString()+"\n"+ l.Pen.Color.B.ToString()+"\n"+ l.Pen.Width.ToString()+"\n\n"; after i draw the line i click on save to send the informations to the text : private void button1_Click(object sender, System.EventArgs e) { //save System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); streamWriter.WriteLine(LineSv); streamWriter.Flush(); streamWriter.Close(); fs.Close(); } Regards:confused:

    IT & Infrastructure graphics tutorial question career

  • urgent..pzzz!!
    M mr jets

    heloo my friend..okie my for loop like that : for (int j=0; j < arraylist_points.Count; j++){...} so lets say i draw squar then line ..it will be saved in text file as..: Line {X=83,Y=58}{X=257,Y=172} Line {X=165,Y=55}{X=71,Y=251} its should write squar then line..not line twice..!!:confused:

    Graphics help css graphics

  • saving drawing as text file
    M mr jets

    ok i did that ..: if(drawwhat==1) { streamWriter.WriteLine("Line"); for(int j=0;j lessthan arraylist_points.Count;j++) { start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } else if(drawwhat==2) { streamWriter.WriteLine("squar"); for(int j=0;jlessthan arraylist_points.Count;j++) { start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } streamWriter.Flush(); streamWriter.Close(); fs.Close(); } it will be saved in text file as : squar {X=131,Y=61}{X=265,Y=143} {X=68,Y=106}{X=146,Y=196} or u can recommend me ausfull article talkin about this..thats will be abetter idea..:sigh::confused: Regards:);

    C# graphics help css

  • saving drawing as text file
    M mr jets

    hello my friend..i know it writes each point twice one for idicate the start ..and other indicate the last..but the problem is when i draw 2 shapes like line the squar ..it writes SQUAR WORD TWICE in the text file as: squar {X=151,Y=49}{X=281,Y=143} squar {X=55,Y=96}{X=157,Y=202}

    C# graphics help css

  • helpp..plzz!
    M mr jets

    helloo guys..okie iam creating acode that can draw different shapes(lines, squar,..etc)thats done then save their info in text file ..(like the start point ,end point,..etc)..thats cool too ; BUTT the problem is its writting the last thing i draw ..(if i draw line then squar ..it writes squar twice):confused: // save the file string str_Line; System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); if(drawwhat==1) { for(int j=0;j less than arraylist_points.Count;j++) streamWriter.WriteLine("Line"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } else if(drawwhat==2) { for(int j=0;j { streamWriter.WriteLine("squar"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } streamWriter.Flush(); streamWriter.Close(); fs.Close(); } //note : i want the program read from text after saving it..iam dealing VS 2003 ! Regards;:sigh:

    IT & Infrastructure css visual-studio graphics help

  • urgent..pzzz!!
    M mr jets

    helloo guys..okie iam creating acode that can draw different shapes(lines, squar,..etc)thats done then save their info in text file ..(like the start point ,end point,..etc)..thats cool too ; BUTT the problem is its writting the last thing i draw ..(if i draw line then squar ..it writes squar twice):confused: // save the file string str_Line; System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); if(drawwhat==1) { for(int j=0;j less than arraylist_points.Count;j++) streamWriter.WriteLine("Line"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } else if(drawwhat==2) { for(int j=0;j { streamWriter.WriteLine("squar"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } streamWriter.Flush(); streamWriter.Close(); fs.Close(); } //plzz brothers iam stuck !

    Graphics help css graphics

  • saving drawing as text file
    M mr jets

    helloo guys..okie iam creating acode that can draw different shapes(lines, squar,..etc)thats done then save their info in text file ..(like the start point ,end point,..etc)..thats cool too ; BUTT the problem is its writting the last thing i draw ..(if i draw line then squar ..it writes squar twice):confused: // save the file string str_Line; System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); if(drawwhat==1) { for(int j=0;j less than arraylist_points.Count;j++) streamWriter.WriteLine("Line"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } else if(drawwhat==2) { for(int j=0;j { streamWriter.WriteLine("squar"); start=(Point)arraylist_points[j]; end=(Point)arraylist_points[j+1]; str_Line=start.ToString()+end.ToString(); streamWriter.WriteLine(str_Line); j++; } } streamWriter.Flush(); streamWriter.Close(); fs.Close(); } //plzz brothers iam stuck !

    C# graphics help css

  • saving my drawing as atext file...!!
    M mr jets

    yah thats cool my bro..i have already used an arraylist and thats was my best : // save the file string str_Line; System.IO.FileStream fs = new System.IO.FileStream("c:\\graphics.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); StreamWriter streamWriter=new StreamWriter(fs); if(drawwhat==1) { for(int j=0;j

    Graphics graphics help

  • help..any one helpp..!
    M mr jets

    yah its much better..thanks bro..i will be more geatfull if u recommended me any usefull article about that..cuz iam dealing with alot of shapes ..not just lines...thanks again for ur time. cheers;;)

    C# graphics help

  • help..any one helpp..!
    M mr jets

    thanks alot bro..but we are not on the same page..ok assume that i draw aline i want after clicking on save button..it will save the (start point , end point ,RGB ,...)of that line in text file..!!:^)

    C# graphics help

  • help..any one helpp..!
    M mr jets

    mmmm..sounds look cool my friend..but i didnt get any thing :-O..do u know any usefull article about this..i will be greatfull.! Regards:);

    C# graphics help

  • help..any one helpp..!
    M mr jets

    yah bro..thats right i wanna to save my drawing as text file..but iam stuck..!:confused:

    C# graphics help

  • saving my drawing as atext file...!!
    M mr jets

    hello guys..my program is about drawing some shapes like (lines ,polygons..etc)my nightmare is after drawing the shapes i wanna to save them as atext file which contains the (start point , end point , color ,..etc) iam using V.S 2003...i will apprecaite any help . Regards:sigh:;

    Graphics graphics help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups