Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
Please write here some solutoins.
Posted
Comments
Thomas Daniels 3-Mar-14 13:59pm    
Why pixel by pixel? That's very slow!
Valery Possoz 3-Mar-14 13:59pm    
Where are you stuck? for copy-paste see google.
Sergey Alexandrovich Kryukov 3-Mar-14 14:29pm    
It depends on what libraries do you want to use, what UI library/framework, what is the application type. You need to tag such things if some UI or graphics is involved.
—SA

Best possible solution is here[^].

-KR
 
Share this answer
 
Comments
Lukas3 3-Mar-14 14:09pm    
SetPixel - set points int Bitmap to concret color, but I need LoadBitmap and then I need draw bitmap pixel by pixel, because I must cut points(pixels) that have color, which I dont need
Krunal Rohit 3-Mar-14 14:32pm    
yeah, then go with http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits%28v=vs.110%29.aspx

-KR
Worst thing to draw anything is using SetPixel. You should better use System.Drawing.Bitmap.LockBits:
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits%28v=vs.110%29.aspx[^].

With WPF, it can be done using the class System.Windows.Media.Imaging.WriteableBitmap:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900