Can any one tell me what is the replacement of System.Drawing in developing windows 8 apps. I tried System.Drawing but it is not supported by windows 8 apps. I have to use Image.FromFile() but it is showing error in windows 8. It is working fine in console application.
相关问题
- Views base64 encoded blob in HTML with PHP
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- How to get the background from multiple images by
- Why am I getting UnauthorizedAccessException on th
Perhaps this article from MSDN might help you out: XAML vector-based drawing sample.
The sample covers:
Edit:
Instead of the System.Drawing namespace, for Windows 8 there is the Windows.Graphics.Imaging namespace. If you follow the link you'll find several samples/articles explaining how to process image files, how to encode (file from image) or decode (image from file) or how to edit an image.
Hope this helps you out further! :)
I used the namespace Windows.Graphics.Imaging and tried to convert my tiff image into jpeg but it is not working. pls check the following code and tell me what i am doing wrong in the code.