|
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
|
|
|
|
|
|
Has anyone have any resources (articles, algorithms, code etc) about how to flatten a hand-drawn line. I'll really appreciate it.
|
|
|
|
|
The Hough Transform is good for that. It can identify the position and slope of a line, even with errors in the data.
It considers each dark pixel as evidence the line passes through that point. As it process each dark pixel in the hand-drawn line, it accumulates evidence for all possible lines. The line with the most evidence is selected as the result.
(The Hough Transform can also recognize a lot more than just lines.)
A different (and simpler) approach is to use linear regression to get an equation of the line that best fits the points.
|
|
|
|
|
Another quick-n-dirty approach: Take the first and last point of the hand-drawn line, and find the equation of the line connecting them. Probably the simplest approach, which may be good enough for your purposes.
|
|
|
|
|
Thanks for the answer, I heard about the hough transform but never thought it could be the solution. Btw do you know any sample applications (or articles etc) that uses the hough transfrom for similar purposes, so I can examine it...
|
|
|
|
|
|
Hello gurus
trying to work on a bitmap I trapped into possible GDI+ limitations. In the help I find only a few formats that GDI+ supports (standards like BMP, JPG etc.) but not the format I need: DPX.
Is there any way to expand the possibilities and capture a DPX bitmap? I know there are some programs that can handle the format under windows, so I can't imagine there wouldn't be an elegant way...
Thanks in advance
Michael
|
|
|
|
|
If you only need a fixed number of DPX bitmaps, you can display them in whatever DPX viewer you have, select the image (left click), press Alt-PrtScn to copy the image to the clipboard, paste the image into MS Paint, then save the image as a bitmap file.
|
|
|
|
|
Unfortunately it's more often and I'll have to make an application which collects the relevant files and repairs them automatically.
If it's really not possible in VB Express direct, I guess I'm going to call GraphicsMagick (which btw does a great job in graphics transformations with almost every imaginable format) to repair image after image. Still I'd have loved to do it directly within the app...
Thank you anyway!
|
|
|
|
|
Hi,
I'm trying to retrieve the duration of an AVI file using Microsoft.DirectX.AudioVideoPlayback.Video class. This used to work on my previous XP machine, but on my new Vista machine its throwing a DirectXException
"Error in the application";
ErrorCode: -2147467262
ErrorString: "E_NOINTERFACE"
This exception is being thrown if I call the Video.FromFile method. Please help..
Thanks in advance,
Daniel
|
|
|
|
|
Do you know which technology that class uses under the covers? If it's VFW, that's not supported on Vista. Broke a bunch of OpenCV apps, too.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
You may need to install the latest DirectX runtime[^].
I'm not sure the managed DirectX stuff comes with Vista.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|