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

  • SEARCH
  • Home
  • 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 6778033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:13:07+00:00 2026-05-26T16:13:07+00:00

Herein is my piece of code but I’ve got an error No imaging component

  • 0

Herein is my piece of code but I’ve got an error

No imaging component suitable to complete this operation was found

in “EndInit()” line.

I’ve read WIC registry modification (NB: my OS is Windows 7 and my IDE is VS 2010) but it did not work at all 🙁

I was wondering if you let me know what do I do to solve it.

BitmapImage myBitmapImage = new BitmapImage();


byte[] DM = new byte[307200];

for (int i = 0; i < 640; i++)
    for (int j = 0; j < 480; j++)
        if (i < 500)
            DM[i + j] = i;

using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream(DM))
{
    myBitmapImage.BeginInit();
    myBitmapImage.StreamSource = memoryStream;
    myBitmapImage.DecodePixelWidth = 640;
    myBitmapImage.EndInit();

}

img.Source = myBitmapImage;
  • 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-26T16:13:07+00:00Added an answer on May 26, 2026 at 4:13 pm

    Well, you cannot just pass in an array of pixel data; there is no way the class can know what length and height, what channels and what color depth the image is supposed to have. You need to provide a valid header for the supported formats, e.g. bmp, jpg or png. There are some others, a listing exists somewhere on MSDN.

    Since you want to create a bitmap from scratch you might want to use a WritableBitmap instead.

    (By the way, DecodePixelWidth does not what you presumably think it does; it just scales the picture down after decoding it to save memory)

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

Sidebar

Related Questions

Here in Apple's sample code I found this type of persistence storage. Can anyone
I have a problem with this piece of code If I don't use the
Here in this code: $('#doneItem').click(function(){ $(this).each(function(index){ var item = 'personal' + index; alert(item); localStorage.removeItem('personal'
Thanks @dtb for help, he advised really need piece of code for generic service
I'm looking for a very specific piece of information. I could make this a
In GCC I got the following error: aes.c: In function ‘copy_block’: aes.c:278: error: lvalue
enter code hereIn my Application I am using Sqlite as an externel data base.
Most programming code, I imagine is written in English. But I'm curious how people
here in this code i have a sentence that i convert it to an
enter code hereIn my SQL Server database I have my address information for 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.