|
Hello!
I'm writing my DirectShow filter and I need to handle DVD (play, pause and stop) events...
Base filter class is CTransInPlaceFilter. Have You got any idea?
Thanks
|
|
|
|
|
|
Thanks for replying, but this is not exactly what I need.
I must catch the events from inside of the filter.
I can create hidden filter window and subclass the player window or change it
and resend messages to the player,
but it's slightly hard and hacky solution.
Aren't there any better way to catch the events directly in the filter class?
|
|
|
|
|
I don't know, I haven't done much with DirectShow. But I suspect this is possible, you just need to dig a little more.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
I use images for my toolbars and other gui elements from IconArchive.com and VistaIcons.com but sometimes I don't get the ones I need.
Does anyone knows where to get more free icons?
|
|
|
|
|
Subj.
I know one can make a region out of GraphicsPath which has methods like intersect , exclude , xor , union etc. that allow to combine regions in various ways. But can I do the same with GraphicsPath itself somehow (it doesn't have anything similar)? Regions are problematic since one can only fill it. Can't draw it and it doesn't pay attention to Graphics.SmoothingMode and Graphics.CompositingQuality .
Let's say I have a polygon in a GraphicsPath. I want to cut an oval shape out of it on a side.
Please help!
|
|
|
|
|
Hello all,
I'm facing a challenge, creating a winform(c#) that displays tif images,
very large ones, that when loaded, they occupy the majority of the memory.
My theory is that I could resize, change the dpi, before they are displayed,
because you wouldn't need the amount of detail just to view them anyways.
So, from a 600dpi image, I would like to be able to both change it to, say 300dpi,
and resize it to further decrease memory usage.
But, you still need to load the image into memory in order to manipulate them?
Is there another approach that does not involve trying to load the full image into memory?
Note, I still want the file to be in it's original state. Just want to resize it when viewing.
best regards,
Ryan
|
|
|
|
|
Hi,
Iam new to WinCE .net and im developing a UI in C#. My problem is that my form is not complty shown in the output window . Why is this happening? Please help.
Sayana
|
|
|
|
|
Hi everybody,
I would like to create a project template for the community programmers, for now I would like to create a Project template for the Visual C++ 2008 for the HGE framework. But I would like to know how I can start?
Thanks for the attenction and have a nice day.
Sorry for anything.
[Jack Dracon Game Programmer Beginner] - Brazil
|
|
|
|
|
Actually related to transparent text box.
The simple solution was to define a "large" Label with background set to transparent since a "textbox" can't be transparent. Although "DrawString" works well enough. I would like to set the "textbox" background to the image underneath and use standard text display.
A sample:
Dim Some_Image As Image
Some_Image = Image.FromFile("Test.bmp")
'For testing the bmp is 312x445
'Hard-coded Co-ordinates for testing
Using gr As Graphics = Graphics.FromImage(Some_Image)
Dim StartPoint As New System.Drawing.Point(17, 200)
Dim EndPoint As New System.Drawing.Point(0, 0)
Dim SizeClip As New System.Drawing.Size(181, 96)
Dim TextBackground As Image
TextBackground = gr.CopyFromScreen(StartPoint, EndPoint, SizeClip)
Label1.Image = TextBackground
Label1.Text = "Overlay Text"
End Using 'gr
'Paste up the image
PictureBox1.Image = Some_Image
The "CopyFromScreen" won't compile. Error="Expression does not return a value"
Commenting that statement out and replacing with
Label1.image=Image.FromFile("someotherimage.bmp") works
Hope I explained this clearly!
|
|
|
|
|
CAN Coder wrote: The "CopyFromScreen" won't compile. Error="Expression does not return a value"
Correct, because Graphics.CopyFromScreen() doesn't return a value.
The method copies pixels from the screen to the drawing surface
associated with the graphics object. Since you want that surface to be
an Image/Bitmap, you need to create the Image (the appropriate size and
desired format) first, then create a Graphics from the Image (using
Graphics.FromImage() is fine). Then calling CopyFromScreen() on this
Graphics object will copy pixels from the screen onto your image.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
I have the following problem: I painted a rectangle with a text outside of my app on the screen in the WM_PAINT message. The Problem is that it flickrs very hard. The code I use:
hdc = GetDC(NULL);
SelectObject(hdc, GetStockObject(WHITE_BRUSH));
RoundRect(hdc, 10, 10, 100, 40, 9, 9);
rc.left = 10;
rc.top = 10;
rc.right = 100;
rc.bottom = 40;
SetBkColor(ps.hdc, RGB(255,255,255));
DrawText(hdc,L"Hello",5, &rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
ReleaseDC(hWnd,hdc);
I also tried using the WM_NCPAINT message but the it destroys the complete app frame.
Thanks for help.
bye,
gabbana
|
|
|
|
|
Okay i solved the problem with the double buffering system.
I created a new DC and a Bitmap and draw into this dc and made an bit block transfer at the end into the right DC.
|
|
|
|
|
I have been working with a small vision application,in Directshow,
and i want a control that, like a TrackBar can move, but i want it to scan the surface of my window
with a line that then returns picture data for that specifice scan line !!!
My problem is that i have not worked with graphic programming before!!!
And i have been looking through some articles,but havent found what i am looking for.
language i am working with C++
Compiler i am working with is Borland C++.
Questions:
1) Is it possible to generate own windows classes like the BUTTON class in WIN32 API ?
2) Is there a language that makes graphic programming easy.
3) Been looking for a place to start, is game programming a whay to start when learing
graphic programming, or is there another whey to solve my problem ??
Any articles and help will bee appricated.
|
|
|
|
|
1) Yes its possible -> creating own controls
2) c++
3) You cannot compare game development with graphic development, because the first also includes thinks like AI,..., my best way would be start with GDI (GDI+) and then begin with Direct3D.
|
|
|
|
|
Any one who knows about BBM format and its specifications, or how to convert any image to BBM format using C#, please help me.
Searched in all blogs, no clue about BBM format.
Thanks in advance.
|
|
|
|
|
I couldn't find much about it. It appears to be an image format used for animation. You might want to check out LBM (which is essentially IFF) first as I bet BBM is very closely related.
Cheers,
Drew.
|
|
|
|
|
Please give me the details of the LBM or IFF, like conversion of BMP to LBM or IFF formats.
Thanks in advance
|
|
|
|
|
You can get started here[^].
Cheers,
Drew.
|
|
|
|
|
Thank you.
But i need one more help.
I got few details about the BBM. But the problem is, before converting to BBM i have to convert it to DIB format.
Is there any DLL which can be used to convert any format to DIB format.
Thanks in Advance
|
|
|
|
|
gtag wrote: Is there any DLL which can be used to convert any format to DIB format.
Not that I know of. That's the part you'll have to write - reading a BBM file into a DIB.
Cheers,
Drew.
|
|
|
|
|
sorry for not giving correct info.
I want to write BMP into DIB format. Later on after conversion to DIB.
I got one DDL called IMGCTL.dll but while refering one function called PixelDIB , getting error:
A call to PInvoke function 'Test!IMGCTL.Class1::PixelDIB' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
This is the link from where i downloaded dll:
http://www.ruche-home.net
|
|
|
|
|
Hi,
I was wondering if anybody had any good links, books or papers that they can recommend on rendering fire in real time. I am totally new at this sort of thing and so I'm looking everywhere for anything useful on the topic. Even the different approaches to take. I was thinking using billboards, but the illusion would be ruined in a 3D environment. Then of course there is the option of a particle system, however im worried by the performance of (plus I have never written a particle system before, although im willing to learn).
Again, any information is helpful and much appreciated.
Thanks.
|
|
|
|
|
A great start is here (nVidia Developer Zone)[^]. There are a tonne of resources that will give you lots of great ideas. For fire and particle systems, check of their FX Composer[^]
Ultimately, many, many cool effects can be done with pixel and fragment shaders.
Hope that helps get you started.
Cheers,
Drew.
|
|
|
|
|
Thanks for the link
|
|
|
|