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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:19:04+00:00 2026-06-05T23:19:04+00:00

In C++, I write a float image into a file: FILE* fp = fopen(image.fft,

  • 0

In C++, I write a float image into a file:

FILE* fp = fopen("image.fft", "wb");

float* pixels = getPixel();

fwrite((unsigned char*)pixels, sizeof(pixels), width*height, fp);

For analyzing the image, we need to read the float image into C#. I am stuck with how to read the float image “image.fft” into C#. I know the size width and height of the float image.

  • 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-06-05T23:19:05+00:00Added an answer on June 5, 2026 at 11:19 pm

    You could use this bimap constructor http://msdn.microsoft.com/en-us/library/zy1a2d14.aspx , just use GCHandle to byte array from file to get IntPtr or something like this:

     Bitmap BytesToBitmap (byte[] bmpBytes, Size imageSize)
    {
        Bitmap bmp = new Bitmap (imageSize.Width, imageSize.Height);
    
        BitmapData bData  = bmp.LockBits (new Rectangle (0,0, bmp.Size.Width,bmp.Size.Length),
            ImageLockMode.WriteOnly,
            PixelFormat.Format32bppRgb);
    
        // Copy the bytes to the bitmap object
        Marshal.Copy (bmpBytes, 0, bData.Scan0, bmpBytes.Length);
        bmp.UnlockBits(bData);
        return bmp;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to write optimized code for accesing image pixels and need to make
I want to write a function to downsize an image to fit specified bounds.
I'm trying to write a program that will take an HTML file and make
I want to write a shader that creates a reflection of an image similiar
Here is demo ... In css code, I didn't write any padding but image
can you set the the image size of this control with css? <img style=border-width:
So I'm using this code to write the file(just testing now, I'm going to
I'd like to write a pixel shader that takes an input image, and converts
I've searched and seen people write about float:clear, but i think I'm having the
How to write the expression shorter: return '%.0f' % float_var if float_var else float_var

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.