Practical development tips for Windows Phone (16): editing images in Windows Phone

Source: Internet
Author: User
When it comes to editing images, you may think of splitting the images into pixels and then operating these pixels to edit the images. Today we will introduce a useful class called writeablebitmap, a class that can save the UI elements as images or save the UI elements after they are converted. OK. Let's start the demo:

It is implemented in two ways: UI and postCode.

Ui implementation:

For page layout, convert the image control and textblock control into a container (I select grid)

 

The general XAML is as follows, where grid is named xamlgrid

Next let's take a look at how the event is handled. First, save the UI element as a writable image, then save it to the state, and display it on another page:

Page 2 accept and display

The running effect is as follows:

Next, let's take a look at the second method,Post-code implementationThis method may be more practical in practical application:

The method is very simple, that is, to translate the previous XAML in The Post code.

Running Effect
 

 

Source codeDownload:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.