Hi,
draw random graphical images in c# windows application
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 4, 2010, 9:24 PM EST
are you trying to made some captcha control type of thing?? what kind of graphical shapes you want to draw??
kannan s65 reputationPosted Mar 4, 2010, 9:39 PM EST
like points ,and circles ..but the position of points should change based on the input
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 4, 2010, 11:33 PM EST
Try following code i have commented where to generate the pixels and where to generate circle but both are random to fill the all image area.
Graphics xGraph; int k; int r; int x, y; Bitmap DrawArea; DrawArea = new Bitmap(Width,Height,System.Drawing.Imaging.PixelFormat.Format24bppRgb); // Creating points on Bitmap for (int x = 0; x Don't forget to mark as answer.kannan s65 reputationPosted Mar 5, 2010, 2:03 AM EST
i need to change points position based on selected value from dropdownlist..
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 5, 2010, 2:28 AM EST
you have to customize the code some what by urself.. on selected index changed event of Dropdown you can provide the seed for random no.
and generate random no. for near range of the selected points. i hope your problem will get solved.
kannan s65 reputationPosted Mar 5, 2010, 3:09 AM EST
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 5, 2010, 3:33 AM EST
Please do mark my answer it'll help me get some point when you get help then please do favor to mark as answer.
Best Regards