Hi, I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size, 1) only 3 sides of the rectangle can be visible. 2) sometimes 2 sides only can be visible. 3) Above two context has been happen randomly. Please, somebody help me out from this issue. Thanx in advance, Regards Surez
uresh hanmugam
Posts
-
DirectX - Direct Show programming? -
Client - Server application using sockets?ok thank you
-
Client - Server application using sockets?sorry! i'm having MFC dll, which act as a server by the way of socket concept. Could i communicate that server from my c# application?
-
Client-Server using socket?Hi, I want to build one MFC dll which will act as a server using socket or any other concepts... And then want to build one windows application using c# which will act as a client. If i click a button from the c# application, one of the server function want to invoke!.. Is it possible? If anybody know, please guide me... Thanx in advance Surez
-
Client - Server application using sockets?Hi, I want to build one MFC dll which will act as a server using socket or any other concepts... And then want to build one windows application using c# which will act as a client. If i click a button from the c# application, one of the server function want to invoke!.. Is it possible? If anybody know, please guide me... Thanx in advance Surez
-
How to draw ruuber band rectangle on live video?I have created a bitmap for picture box's DC and draw the rectangle on it. Whenever mouse move, new coordinates has been generated and redraw the rectangle. Finally, attached my custom bitmap into directx frame using SetAlphaBitmap(). The Custom bitmap not originally attached to the video frame, it has been attached when a video frame has ready to visible. I would like to render different frame size of streams from IP-camera, mean while I would like to maintain my picture box size as static.
-
Upload data to Amibroker?Hi, If anybody have an idea to upload quote data(in .CSV format) from c# application to Amibroker chart application.
-
How to draw ruuber band rectangle on live video?Hi, I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size, 1) only 3 sides of the rectangle can be visible. 2) sometimes 2 sides only can be visible. 3) Above two context has been happen randomly. Please, somebody help me out from this issue. Thanx in advance, Regards Surez
-
Disable the new window cration in ShellExecute?Hi all I have try to executing a URL using ShellExecute. Following snippet is working fine but whenever run this, a new browser window is created...
ShellExecute(NULL, NULL, "http://forums.microsoft.com/MSDN/AddPost.aspx?ForumID=96&SiteID=1", NULL,NULL, SW_HIDE);
How to execute a particular URL without creation of new browser window in ShellExecute? Thanks in advance surezsu -
upload image file into mysql?Hi all, How to upload an image file into mysql database using CDatabase connection... please send a samples if you have.. thanks in advance
-
People Tracking system?Hi all, Is there any open source application for detecting the people from the sequence of video motion of webcam. I need to detect only humans rather than objects. Thanks in advance
-
Install postgreSQL from MFC application? [modified]Hi all, I would like to install and configure the postgresql from my MFC code! If it is possible? Thanks in advance surezsu -- modified at 5:32 Wednesday 28th November, 2007
-
Draw a transparent rectanglei'm having a CBitmap object, which will contain 2546x3288 size image,loading from bmp file.i need to draw a rectangle on that image witout lossing of background image...
void SFormViewer::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here // Do not call CWnd::OnPaint() for painting messages if(flag_iInitPaint) { CRect rClient; GetClientRect(&rClient); CPen m_Pen; m_Pen.CreatePen(PS_SOLID,2,RGB(250,0,0)); CDC m_memDC; m_memDC.CreateCompatibleDC(&dc); m_memDC.SelectObject(&m_FormImage); m_memDC.SelectObject(&m_Pen); m_memDC.SetBkMode(TRANSPARENT); r_SelectedRect.SetRect(m_iShownImgTopX + p_iTopLeft.x, m_iShownImgTopY + p_iTopLeft.y, m_iShownImgTopX + p_iBottomRight.x, m_iShownImgTopY + p_iBottomRight.y); if(flag_Scroll == 0) { m_memDC.Rectangle(r_SelectedRect); } dc.BitBlt(0,0,rClient.Width(),rClient.Height(),&m_memDC,m_iShownImgTopX,m_iShownImgTopY,SRCCOPY); } }
-
Draw a transparent rectangleHi all, At runtime how to draw a transparent rectangle on the bitmap, which is loaded from the file using memory DC. thanks in advance
-
How to read image from MFC using image magick? [modified]Hi all, I need to play with image magick on dialog based application of vc++(MFC) and i have installed the image magic(dynamic dll of binary version). when i use the below code snippet,got runtime error..... Code:
#include Magick++.h #include iostream using namespace std; using namespace Magick; { Image img; img.read("c:\\logo.jpg"); }
Error is: Unhandled exception at 0x000c256.. in sample.exe:0xC000075: Access voilation writing location 0xcde.... Anybody know the solution to this,please let me know as soon as possible.... Thankx in advance... -- modified at 2:17 Thursday 9th August, 2007 -
RichEdit TextBox? [modified]Hi all, I'm having words(collection of text) with co-ordinate position of each word. I need to add those words with relevant position into the rich edit box. If it is possible, please let me know... Thanks in advance
-
Invalid Argument exception?Hi all, I have try to convert a pdf to tiff file.My below the code snippet is working fine when i open a tiff file and convert some other format..But it didn't work when i open the pdf file,it will be thrown error like "Parameter is not valid" from below the code at bold line "Image image = Image.FromStream(fromImageStream, false,true);" please help me what i did wrong.
private void button4_Click(object sender, System.EventArgs e) { FileStream fstPersons = new FileStream(@"c:\\toto.tiff", FileMode.Create,FileAccess.Write); BinaryWriter wrtPersons = new BinaryWriter(fstPersons); FileStream fStream = new FileStream(@"c:\\Sample.pdf", FileMode.Open, FileAccess.Read); BinaryReader reader = new BinaryReader(fStream); FileInfo info = new FileInfo(@"c:\\sample.pdf"); byte[] fromImage = null; fromImage = reader.ReadBytes((int)info.Length); reader.Close(); fStream.Close(); // Read the image from the byte variable into a bitmap variable MemoryStream fromImageStream = new MemoryStream(); fromImageStream.Write(fromImage, 0, fromImage.Length); **Image image = Image.FromStream(fromImageStream, false,true);** Bitmap bitmap = (Bitmap)image; // Instantiate the encoder EncoderParameters encoderParams = new EncoderParameters(); encoderParams.Param[0] = new EncoderParameter(Encoder.Quality, 50L); ImageCodecInfo codecInfo = GetEncoderInfo("image/tiff"); MemoryStream newImage = new MemoryStream(); // Convert the image to the new format bitmap.Save(newImage, codecInfo, encoderParams); // Read the new image into a byte variable byte[] data = newImage.ToArray(); wrtPersons.Write(data); fstPersons.Close(); wrtPersons.Close(); } private static ImageCodecInfo GetEncoderInfo(String mimeType) { int j; ImageCodecInfo[] encoders; encoders = ImageCodecInfo.GetImageEncoders(); for(j = 0; j < encoders.Length; ++j) { if(encoders[j].MimeType == mimeType) return encoders[j]; } return nul
-
ImageMagick in c#?i need to convert from pdf file into tiff file? If it is possible with in GDI+, please send some samples.
-
ImageMagick in c#?Hi all, How can i integrate the ImageMagick with c# .net. If you have any samples or links please let me know. thanks in advance
-
How to import ActiveX control in the form?Hi all, I'm developing a document processing project using microsoft office document imaging 11.0(MODI) library for OCR in C#. MODI have an activeX control that is microsoft office document imaging viewer control. If we have to install the MS office 2003,we can use MODI and their activeX control as references from the COM component dialog. The adove all are working fine in my project,which is converted from visual studio 2003 to visual studio 2005.But,when i create a new project in visual studio 2005, and try to add the MODI viewer control in the form,it will thrown the error like "Failed to import the activeX control.Please ensure it is properly registered". I dont know what i did wrong. Now I'm using visual studio 2005. So, please anyone help me regarding to this. Thanks in advance.