Hi,
I need to read the size of the bitmap image (width x height) using C. If I can read the header information of the image my purpose will be served. Please let me know how I can achieve this? Please help me
Regards,
Pavan
Search Result
Collapse
8 results in 0.0015 seconds.
Keywords
Members
Tags
-
How to read bitmap image using C?
-
GDI: Pixel intensity to grayscale bitmap drawing issue, MFC
Hi,
I am reading some image data out of a camera pixels and have extracted the raw pixel intensity. Each "pixel" on the Camera sensor has either a R,G, or B filter that gives the intensity of the 'R', 'G', or 'B' 'pixel'. I read this data and then extract and store the individual R, G, or B pixel intensities into 3 separate 2d unsigned char arrays called m_ptrRed2DPostD ecimationArray. m_ptrGreen2DPos tDecimationArra y, and m_ptrBlue2DPost DecimationArray ....Last edited by Niheel; Jun 3 '10, 09:33 AM. Reason: added code tags, next time to display code use [code] . . . [/code] -
Editing Bitmap objects while on screen
I'm writing an application that draws custom fractal images, so I'm currently creating an empty bitmap, drawing to that, and then drawing that on the screen using a form's OnPaint. This lets me do quick transformations like rotations and panning while still calculating the fractal. I want to update the bitmap while its on the screen, so the fractal updates itself even while you're panning or rotating.
Problem is, Visual Studio gets... -
My Method on Paint drastically effects my program GUI's performance
Hello everyone,
I would like to ask for your help, guys. For some reasons, if i include the following lines in my paint event handler of my picture box, the GUI acts very weird (as if it cannot "draw" all the controls, some of them are invisible or the program acts as if there is no threading). The reason is because I include those lines of code. But what is the real reason behind it? Is it because Paint event handler tries to re-paint... -
Problem with Bitmaps and Graphics
I'm new to C#, so please forgive the ~407,000 coding sins I'm probably making.
The purpose of this function is to take a bitmap and return a bitmap of double the height, with two of the images stacked on top of each other.
...Code:private Bitmap ProcessBitmap(Bitmap sourceBitmap) { int w = sourceBitmap.Width; int h = sourceBitmap.Height; -
Object is currently in use elsewhere.
Hello. This is my first question asked in here, since I'm pretty new to c# programming. So I hope I write it in a proper understandable way.
My problem is, that I have a program with sveral classes, and I want a bitmap sent from my graphic class to the main class, when an event occurs in the graphic class. The program runs fine for a while (2-3) seconds, but then I get this message: "Object is currently in use elsewhere"...Last edited by tlhintoq; Nov 26 '09, 05:18 PM. Reason: [CODE] ...your code here... [/CODE] tags added -
Writing and moving text on Bitmaps of various resolutions
I'm writing a program that displays a user-supplied Bitmap and then writes text fields to it. These "text fields" are things that the user can move around on the image, but to render them efficiently, I draw the text directly to the image. It's faster that way.
The problem is that right now I have to redraw the original (unwritten-to) bitmap and redraw the text whenever the user moves the text because I haven't figured out... -
Adding bitmap to colum other than the first in a ListView
How can I do this? This question has been asked so many times on other forums without an answer, so I am not hopeful. OAKview has been suggested but it doesn't work, so please don't suggest that. I would like to know how to do it myself anyway, rather than use someone else's control.
I would to add an image to the second column of a listview, it seems to only allow an image to be associated with an item rather than a subitem, though....