What drawing methods can I use in the Win 8 Phone SDK to manually draw single pixels on the screen, like in a drawing app?
It doesn’t matter if its c#, c++ or something else.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use WritableBitmap.Pixels collection to manipulate pixels directly and display them on the screen by setting Image.SetSource(myWriteableBItmap).
Since WriteableBitmap is a bit sparse, you should pick up WriteableBitmapEx that adds lots of 2D rendering functions to WriteableBitmap. See more at @ http://writeablebitmapex.codeplex.com
For on-screen drawing you should consider using InkPresenter as it’s much more suited to handle those usecases @ http://www.nickharris.net/2010/03/silverlight-for-mobile-on-windows-phone-7-inkpresenter-fun/