Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:46:45+00:00 2026-05-28T02:46:45+00:00

How to change Image pixel color and update image in wp7 using c# Here,

  • 0

How to change Image pixel color and update image in wp7 using c#

Here, I have already loaded one jpg image in img1 source. I want to load that image to writableBitmap and convert the pixel color. I have tried, but i got an empty image.

WriteableBitmap writeableBmp = new WriteableBitmap(512, 512);
writeableBmp.Render(img1, null);

for (int i = 0; i < 500; i++)
{
    writeableBmp.Pixels.SetValue(21, i);
}

img1.Source = writeableBmp;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:46:45+00:00Added an answer on May 28, 2026 at 2:46 am

    You can create the Writeable Bitmap from the BitmapImage converted using JPG image.

    And then change the value and assigning to Image control is as follows .

    Please check is this solve your problem .

    BitmapImage bmp = new BitmapImage(new Uri("JpegImageUri", UriKind.RelativeOrAbsolute));
    
    WriteableBitmap wbmp = new WriteableBitmap(bmp);
    
    for (int i = 0; i < 500; i++)
    {
        wbmp.Pixels.SetValue(21, i);
    }
    
    Image image = new Image();
    image.Source = wbmp;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image whose pixel colors I want to change to match a
I have loaded an image of a color wheel on to a canvas and
I have an Image, I'd like to replace all the pixels of one color
As you can see on http://jsbin.com/erivi/ I'm using Jquery to change some image (and
Jquery, AJAX and URL changes... I have a gallery, and when the image change
How to change cell background image on click on cell in iphone????I have tried
Change all links that have an image in it to: javascript(alert(thehref)); eg. <a href=/galleries/anna-leah-111827/image01.html><img
Say I have an PNG image where I want to change certain pixels to,
I have a 1 pixel tall by 760 pixel wide image that I use
I have an image, <img src=/meAndMy/face.jpg /> . I am trying to get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.