I want to make a diagonal/ triangle shape image from bitmap source without using any polygon control, how to do this in windows phone.
Asked
Active
Viewed 215 times
0

David Božjak
- 16,887
- 18
- 67
- 98

Akash Langhani
- 167
- 1
- 10
-
What do you mean, you want to "make it?" Make it where? Dynamically? Why not with a shape? – WiredPrairie Mar 24 '14 at 12:23
-
You could make a custom effect (using the Nokia Imaging SDK) that masks out a triangle shape. – CÅdahl Mar 27 '14 at 20:15
1 Answers
1
Hm what do you mean without using any polygon controls?
You can create a WriteableBitmap, and draw on it with any tools you prefer. If you want to avoid all additional tools you can call set/get pixel methods and for loops.
When you are happy with your WriteableBitmap you can create a BitmapImageSource and then call .AsBitmap() on your WriteableBitmap. With that complete you can then use the whole imaging SDK chain.
Edit: You can find the .AsBitmap method in Nokia.InteropServices.WindowsRuntime namespace.

David Božjak
- 16,887
- 18
- 67
- 98