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 7191929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:49:57+00:00 2026-05-28T19:49:57+00:00

I am doing a Drawing App. I have saved the color fill image as

  • 0

I am doing a Drawing App. I have saved the color fill image as bitmapImage in collection. Again I open the saved image for drawing. If i fill the color of image, the color filling not clear. I have used ExtensionJpg for save Image.

            WriteableBitmap pBitmap;
            pBitmap = new WriteableBitmap(imgDraw, null); // imgDraw is jpg image bitmapImage binded to source. 

            BitmapImage img1 = new BitmapImage();
            MemoryStream ms = new MemoryStream();
            pBitmap.SaveJpeg(ms, (int)pBitmap.PixelWidth, (int)pBitmap.PixelHeight, 0, 100);                  
            img1.SetSource(ms);

In this case again i have binded the this bitmap Image to imgDraw Source. But to saw the image is very clear.
When i fill colors to imgDraw is not applied correctly.

Thanks

  • 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-28T19:49:58+00:00Added an answer on May 28, 2026 at 7:49 pm

    When you encode a bitmap as a Jpeg file you can lose data. that is part of the design of lossy compression algorithms such as Jpeg.

    Even worse, using a lossy compression can introduce (hardly visible) artifacts. So by saving the image as Jpeg you are probably adding pixels to the large, clear area. These pixels cause the fill to fail.

    You have three options:

    1. Do not use a lossy algorithm by switching to e.g. PNG
    2. Change the quality of the compression
    3. Change the fill algorithm to be more tolerant of nearly-the-same-color pixels.

    I noticed that you set the quality to 100 but this question makes me doubt the quality of the jpeg implementation of the method you might be using. You could switch to PNG to see if that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing custom drawing in datagridview cells and I have items that can vertically
I'm doing some rather basic drawing in an app I am working on, and
I'm doing drawing app for ipad which need to save multiples of NSMutableArray of
What am I doing wrong here? Im trying to save a canvas drawing by
Doing some ETL and I have a wide file with lots of cols, for
Doing some jquery animation. I have certain divs set up with an attribute of
I'm having trouble with a gradient drawing call. I have a Form that looks
I am playing around with a little drawing app I am making and was
I'm trying to create a little free-hand drawing app, and to figure out a
I'm designing an iPad app that will have a custom grid in it. 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.