|
What is the misbehaviour?
Please be specific in your posts.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The code does not execute... The image is read right to left i believe, not left to right
|
|
|
|
|
Mitesh Karwa wrote: The code does not execute...
Mitesh Karwa wrote: The image is read right to left i believe, not left to right
The above behaviours looks quite incompatible...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I'm afraid I did not get you...
Actually, I could not get the image written on the file I meant to. So, the code does not execute.
And I am also doing the same thing in MATLAB. I got the pixel values there using imread command. On comparing, i found that the image is being read right to left. That was also my question... does imread read the image from right to left...
Hope I am being clearer now. Please help me
|
|
|
|
|
There is a not of stuff on the web showing how to load a bitmap file, see, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am not working on Windows Programming. In fact I have no idea about it. Still anyways, thanks for your help. It's very helpful.
I'll try to fix it from here on.
But what about my problem reading the image back after I have done manipulations on it... How do I write it back to another file?
|
|
|
|
|
Actually the problem is that when i write to the image file, nothing gets written on the image. Do I need to include the image header and all again. If yes, how will I know the address it will point to and all that.
What I have done is, in the target directory, right click and go to new -> Bitmap Image. Renamed it as 1.bmp I'm trying to write the array that contains my grayscale image to that file 1.bmp... But the code does not work. Somehow nothing gets written on it
|
|
|
|
|
And your question we need to use of your code or it doesnt work ?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
The code does not execute
|
|
|
|
|
|
...Since, you are trying to read a Bitmap (presumably stored on disk), I'm assuming that you are attempting to write Windows code. Your posted code example has numerous errors. You should start by reading up on the: Bitmap Storage Format, MSDN[^].
This will explain the overall data structure of a bitmap file stored on your computer. You should become familiar with the Bitmap header structure, so that you can read the bitmap file correctly. Here is the reference for the Bitmap Header Types[^]. You should read the headers first to be sure that the image is, in fact, a 24-bit bitmap type (there are numerous variations).
The preferred method is to open the bitmap file with, CreateFile. Then you can read the byte arrays in whatever way is appropriate to your applicatrion.
|
|
|
|
|
The preferred method is to open the bitmap file with, CreateFile.
I am not doing Windows Programming. I am doing a project on face recognition on C++. How do I use CreateFile on C++? Any useful links for that might be helpful
|
|
|
|
|
I'm actually building a BMP Reader in C
And I came accross your code.
I'm only in the beginning and already changed some stuff.
First when you put if(headfirst.type!=19778)
I see that you're not taking ENDIAN in account.
I made some functions to reorder the bytes.
|
|
|
|
|
iges,a usual model in 3D CAD.
I want to show it in my Dialog.
Thanks.
===========================
http://blog.csdn.net/begtostudy
MSN/email:begtostudy@gmail.com
|
|
|
|
|
Have you seen this [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks.
opencascade
===========================
http://blog.csdn.net/begtostudy
MSN/email:begtostudy@gmail.com
|
|
|
|
|
Hello all,
I'm a new member in code project group, so I would be appreciated if someone could help me.
I'm looking for a code written by visual fortran or C (fortran is more recommended) about plain strain analysis of a cracked domain.
I look forward your help.
Thanks in anticipation.
Best regards,
Ramin O
|
|
|
|
|
Hello, see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
HI Experts,
How to Add Move Up and Move Down functionality to My CListCtrl.
Thanks,
Krishna.
|
|
|
|
|
Royaltvk wrote: How to Add Move Up and Move Down functionality to My CListCtrl
What do you mean with that? Do you want to change the order of the items?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ya , i want to change the order.
Thanks for concern
|
|
|
|
|
|
isn't this a bit overkill ? or maybe I'm mis-understand you point,
Me think it's easier to just swap items in the "data source" and refresh the list (if in "virtual mode" than it should not be any problem performance wise.
This signature was proudly tested on animals.
|
|
|
|
|
You can delete and refill the whole content or the changed items.
Or: they should originally be sorted and than change the index. This leads to costum sort
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Maybe you mean drag and drop? Click an item, drag to a new position, and drop?
If that's the case, there are several articles about it on CodeProject, as well as a mountain of examples and tutorials elsewhere on the net.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|