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.
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.
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)
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.
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++.
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 ??
1) Yes its possible -> creating own controls
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.
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:
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.
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...
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.
Last Visit: 31-Dec-99 19:00 Last Update: 29-Jan-23 6:38