how to create a file
-
Hi, I have these coding in my vc++ project.In this,bitmap m_pdib is converted in to jpeg and this jpeg image is shown in the videoplayer. m_pdib.GetJpgData(1,true); m_pdib.DispTODC(1, true); I want to store this converted jpeg image into a file.How to create a file and store this jpeg image sunita ramesh -- modified at 3:09 Friday 5th May, 2006
-
Hi, I have these coding in my vc++ project.In this,bitmap m_pdib is converted in to jpeg and this jpeg image is shown in the videoplayer. m_pdib.GetJpgData(1,true); m_pdib.DispTODC(1, true); I want to store this converted jpeg image into a file.How to create a file and store this jpeg image sunita ramesh -- modified at 3:09 Friday 5th May, 2006
Can you be more specific
-
Can you be more specific
I have a newly desinged cam file in which image files are stored in the form of bitmap.This bitmap is retrived & converted in to jpeg image and then it is displayed in the video player.(it is an Active control ). Everytime to play the video,i call this function,Playwave(int picno). for displaying this image,i call m_pdib.GetJpegData(1,true) and m_pdib.DispTODC(1,true). I want to store this jpeg image in a folder. How to do that. sunita
-
I have a newly desinged cam file in which image files are stored in the form of bitmap.This bitmap is retrived & converted in to jpeg image and then it is displayed in the video player.(it is an Active control ). Everytime to play the video,i call this function,Playwave(int picno). for displaying this image,i call m_pdib.GetJpegData(1,true) and m_pdib.DispTODC(1,true). I want to store this jpeg image in a folder. How to do that. sunita
-
If you could put the image on a DC or on a CBitmap object you can solve your problem using the class
CImage
. It has the Save function that automatically convert the image in many file format (jpg gif png bmp). Hope this helps.thanks for ur reply. Do i need to add class cImage. How to do this.. Can u please explain me in detail. sunita ramesh
-
thanks for ur reply. Do i need to add class cImage. How to do this.. Can u please explain me in detail. sunita ramesh
DEFINE_GUID(ImageFormatJPEG, 0xb96b3cae,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); CImage m_Image; m_Image.Attach(hbitmap handle); m_Image.Save(yourfile,ImageFormatJPEG); m_Image.Detach();
-
thanks for ur reply. Do i need to add class cImage. How to do this.. Can u please explain me in detail. sunita ramesh
I think your problem is write file(jpeg) But I suggest if you can convert bitmap to jpeg use to write data jpeg to file instead use CImage
-
I think your problem is write file(jpeg) But I suggest if you can convert bitmap to jpeg use to write data jpeg to file instead use CImage
thats wat my problem. Can u please explain how to put jpeg data in a file. sunita ramesh
-
thats wat my problem. Can u please explain how to put jpeg data in a file. sunita ramesh
for write jpeg data to file you can see this link http://www.codeproject.com/bitmap/cximage.asp I hope that helps you
-
for write jpeg data to file you can see this link http://www.codeproject.com/bitmap/cximage.asp I hope that helps you
Thanks for ur reply Already I display the image using m_pdib.GetJpgData(1,true); m_pdib.DispTODC(1,true); 1 is nothing but jpeg image1.similarly if i put 2 means i get second image. So can't i able to store this image in a file by adding few lines instead of using a new class. sunita ramesh -- modified at 5:43 Friday 5th May, 2006