![]() |
Extracting pixel data from a bmp
Um, what do you mean?
How many pixels? What color? How many of what color? What are you looking for? Tom P. |
Extracting pixel data from a bmp
MS Paint shows bmp. http://www.discussworldissues.com/fo...milies/nod.gif |
Originally posted by KrazyHorse
Something that will knock out header information and reformat pixel data into an mXn array http://easybmp.sourceforge.net/ ? |
Standalone, please...
My wife is generally hopeless when it comes to computers... |
You are the man.
|
Doesn't seem to have a program that does what you want.
Use the library I linked above to get your wife a hot valentines' day gift. |
If I wasn't a bit swamped today I'd help.
|
OK, now I think I know what you want.
I could write one real easy... It'd be in .NET but I could do it. You want? Tom P. |
Okay. This was my first time doing anything in C++ (did **** in C before, along with FORTRAN and IDL)
C++ is the ****ing ****. |
Originally posted by KrazyHorse
Okay. This was my first time doing anything in C++ (did **** in C before, along with FORTRAN and IDL) C++ is the ****ing ****. If you think C++ is awesome, C# is Godly. |
Are you doing C-style C++ or going all-out with object oriented, polymorphic goodness?
|
Originally posted by KrazyHorse
I googled for how to do a couple of things that were annoying to do in C (i.e. I knew how to do them in C, but searched for how to do them in C++) and it seems much easier in C++ (less monkeying around with the innards when all I need is something simple) So you advanced from 1970s era languages to a 1980s era one. I can't wait til you discover Java (90s) and then C# (2000s). http://www.discussworldissues.com/fo...ilies/wink.gif |
Fortran: 1957
C: 1972 C++: 1983 Java: 1995 C#: 2001 |
My dad taught a class in C++ in the late 80s
JM |
Originally posted by Richelieu
I still have nightmare about pointers http://www.discussworldissues.com/fo...s/frownnod.gif Oddly enough, this is one of the times pointers come in handy. I am having such a time with WorldPainter because I can't resize and repaint the bitmap as fast as I want to (I want a red square to highlight the plot you are pointing at, is that so hard?). In C++ I'd just get the pointer to the screen data and the offset and jump to the appropriate byte, color it, replace the old value, and put the whole thing back. Without pointers I'm stuck wandering through the entire structure and BOY, is it costly. So I try to use DirectX... it doesn't support 2D anymore! The other problem I have is - to everyone that knows how to do this stuff, it's easy. So they say "Declare a surface and use it." ... WHAT?!? And if you ask them to explain themselves they get mad. However, for 90% of the stuff programmers use it for, C# is IT! Now to get someone to pay me for doing C# and I'll be all set. Tom P. |
C# may not be the best work for scientific calculations, either. Though it probably doesn't matter unless you know how to optimize your program to some degree.
|
All times are GMT +1. The time now is 02:02 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2