|
See here and here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
I want to read a byte from a file on every place in the file. How localiser this byte and how can I get this byte from the file.
Jelle.
|
|
|
|
|
Move to the right position with 'seek' function fseek(...) /CFile::Seek(...)
then read 1 byte with fread(...) /CFile::Read(...)
Russell
|
|
|
|
|
i have two big 256 RGB images both are over 400M size, suppose we have known the GPS position of each vertexs of the two image, and the two images have same positions.
i want to splice the two images , make one new image including the two images.
is there good ways to process so big image?
thans.
|
|
|
|
|
Lao Wang wrote: is there good ways to process so big image?
the simplest one: pixel per pixel ...
i.e. do not use any build-in function, because they are surely not tested on very big images.
Russell
|
|
|
|
|
thanks Russell
but processing the two big image by pixel per pixel, consumes all my memory.
|
|
|
|
|
are the images in BMP format?
can you work without load they into the memory i.e. loading/storing pixels from/into the files?
Russell
|
|
|
|
|
yes, the two images are BMP format.
would you please detail your suggestion? the images are .bmp file in my hard disk. how can i load the pixels from the file and process the pixels without loading them into memory?
thanks
|
|
|
|
|
Lao Wang wrote: yes, the two images are BMP format
great!!
Lao Wang wrote: how can i load the pixels from the file and process the pixels without loading them into memory?
Here[^] or here[^] you can find how it is stored an image into a BMP file. i.e. how it is writed the file header.
Writing some lines of code you can load a pixel from the source image and then store into the output image...to let the processing be faster work row per row.
Probally you can find some code ready somewhere (also on CP) to access to the file.
good luck
Russell
|
|
|
|
|
thanks Russell, i will try it as your suggestion!
|
|
|
|
|
good luck
Russell
|
|
|
|
|
I want to add picture in mydialog box for wallpaper as is in the case of Webshots. Anyone tell me which control to use along with the code and functions.
Please help me.
Thanks In advance.
Dhiraj
Dhiraj Kumar Saini
|
|
|
|
|
draw it during CDialog::OnEraseBkgnd
Russell
|
|
|
|
|
Have a look at this site[^], just search for the dialog component on the window.
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Load your image with CImage class or LoadImage function and then use of WM_ERASEBKGND event.
|
|
|
|
|
Does he need to search on the www.functionx.com while we have www.codeproject.com?;)
|
|
|
|
|
its not clear can you just send me the code
Please and let me tell you i am using Picture Box control and it is mfc application and not win32.
Thanks
Dhiraj kumar Saini
|
|
|
|
|
As has been said, have a look in the dialog section here on codeproject - you'll find many articles on the subject. If browsing the website and looking at pictures on articles is too hard for you, then it's not fair to expect others to put in more effort.
Iain.
|
|
|
|
|
If you are using a control like CStatic see this code
CImage m_Image;
m_Image.Load(yourimage);
m_Control.SetBitmap(m_Image.Detach());
|
|
|
|
|
I am using MFC and not ATL so CImage is undeclared identifier.
Dhiraj
|
|
|
|
|
So you can use of OleLoadPicture and for use of this function see articles about it on the codeproject.
|
|
|
|
|
I am using a list control in my dialog box whose id is IDC_LIST1 and now i want that oninitdialog function the width of the columns should be fixed and
then we have to insert a checkbox into the column,
Please help me.
Thanks in advance.
Dhiraj
Dhiraj Kumar Saini
-- modified at 6:29 Monday 17th September, 2007
|
|
|
|
|
look at this...
http://www.codeproject.com/listctrl/ReportControl.asp
Sreedhar DV
[Real success is having courage to meet failure without being defeated.]
|
|
|
|
|
|