|
Shog9 wrote: their propensity to down-vote helpful replies goes into overdrive
I blame the current voting scheme, where some message categories only accept "helpful" and "not helpful",
as opposed to 1,2,3,4,5; this not only flushes the possibility for nuance, but causes a lot of
"not helpful" clicks since a lot of replies are either not understood or, well, not all that helpful.
Strictly speaking, if there are N good replies, all equivalent, then the first one is helpful, and all
the others are not helpful, although similar if not identical to the helpful one
And that is why I carry my current sig.
|
|
|
|
|
It's like giving someone a thumbs-up / flipping the bird... a quick and easy way to indicate your approval / disapproval. And every bit as trite.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
I am developing a card game.
To show the card selected, i am drawing one rectangle to highlight the card.Following is the code i am using to draw rectangle on different card positions:
Pen Blue = new Pen(Color.Blue, 2);
e.Graphics.DrawRectangle(Blue, 199, 300, 73, 97);
While selecting the card, it is getting drawn but at the same time if "deselected" then it(rectangle) should be erased.
I tried in many ways to erase the drawn rectangle but while erasing cards which are drawn are also get erased.
Please assist me.
|
|
|
|
|
I would think the simplest method would be to redraw the display without the blue highlighting rectangle. This would be the same code method that got you this point (before you selected the card). If that doesn't seem feasible, you could draw the highlighting rectangle in whatever color the background is (assuming the background isn't an image).
You don't tell us what mechanism you are using to maintain the state of your game's display (so, I'm assuming that there isn't one). But, if you expect the game to get more complex, you might consider such a concept.
|
|
|
|
|
Hi all,
I'm at the beginning of a new software project aimed at designing image mosaics and asking myself if some of you has good recipes or ideas to share:
1. if or if not to use image libraries, and why;
2. which libraries, if any, are best;
3. which target platform: win32 or 64;
4. whether or not use WPF Imaging;
5. ....
Any suggestion will be very much appreciated.
Thanks,
gsa
|
|
|
|
|
gsaielli wrote: if or if not to use image libraries, and why;
no if you don't have them and don't want them, yes if you want an excuse to get one or already have one.
gsaielli wrote: which libraries, if any, are best;
Depends on your actual usage, especially the last questions.
gsaielli wrote: which target platform: win32 or 64;
which do you have, or which do you want an excuse to use?
gsaielli wrote: whether or not use WPF Imaging;
do you know WPF imaging or do you want an excuse to learn it?
obviously the answer is many things. Almost all of the questions could be any answer. How far have you started? have you looked at all? what languages? what requirements?
You could easily have asked, "I would like to store data, what is the best database? what should I use to access it?" In many questions like this there are many, many answers, and people are often stumped to know exactly where to start in answering you.
So what are your other requirements? deadline? speed? resolution limits/requirements? Do you need to index your own photos or a photo library by tonal sorting? have you already done this? what is your language of preference? what have you started with? what is your goal?
A design does not end by saying, "I want to write a program" jot down a list of what it needs to do, these are your requirements. Make sure to included limits, hopes, etc. You want to fence it in as much as possible. If it has to be done in an hour, you don't want a language or library that takes too long, and you probably want to pre-index your photos. If you have a tonal based photo library you are already a step ahead, if you don't you will have to qualify the thumbnails based on overall tonal quality of each image. etc.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
|
|
|
|
|
AoA
I am doing a GDI+ project. In which i created a user control with transparent background. That is fine. But when i add this control two times in a from, it works strange. When a Control overlays other, the background of the control came as the background of the main form not the user control.
Please help me to solve this problem. The link of the file is given below.
Click to Download[^]
Waiting for any kind of help.
Regards,
Nazar Hussain
|
|
|
|
|
Do you have the WS_CLIPSIBLINGS style set for your control window? It might be clipping its sibling and that's why you see the main window as the background. Something to look at anyhow.
BTW, it's very unlikely anyone is going to click on a link to an executable.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
Thanks sir,
You guide me to the exact thing. Please guide me further, when i use WS_CLIPSIBLINGS in CreateParams overloaded function of the UserControl and run the application. It gave an Win32Exception "The parameter is incorrect".
Please guide me to how to implement WS_CLIPSIBLINGS
And sorry for last time exe file. I will always upload source project next when needed.
|
|
|
|
|
NazarHussain wrote: Please guide me to how to implement WS_CLIPSIBLINGS
I OR it with the other window styles when I call the Create method on the window. But I'm using C++ and WTL for a framework lately. You haven't said but I get the impression you might be using C#. If so, I know next to nothing about C#.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
hello
I Have Question....
What write a Program that can the object or picture similar object1
object1
[IMG]http://i30.tinypic.com/24q5r7n.jpg[/IMG]
with analyze object2 place in object or picture similar object2
object2
[IMG]http://i25.tinypic.com/2a604nn.jpg[/IMG]
that can been minimize space of object2 .
?????????
Do you known sample code or you can help about this program.????
hi......
|
|
|
|
|
Hi All!
I'm a opengl-newbie and I want to add a simple example to complete my application.
Today my application is splitted into 2 tab:
- first tab contains game's settings
- second tab should contain the game!
The problem is that I'm not able to create the game using that tab :'(
I found a lot of example that create a simple opengl application using a window, but no example uses a single Windows::Forms::TabPage^ (I'm usign visual studio)
I hope it can be done, because the first tab required me a lot of time..
ps:for the second tab,just to begin,a simple black "screen" can be enough 
|
|
|
|
|
It can be done. I know, because i've done it with the Win32 SysTabControl32 on which (i'm fairly certain) Windows.Forms.TabPage is based.
Make sure the window you're hosting in the tab is set up correctly (clip siblings, OWNDC, etc) and that you're handling all painting messages (don't let the framework try to draw / double-buffer for you).
On a side note: this is a bit of a crappy UI choice. I'm not sure what sort of settings you're putting on the first page, but if you ever plan on allowing users to modify things they might want to see reflected in the game, the nature of tabs will prevent them from seeing their changes on-the-fly.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
you can implement such things so users can modify things on-the-fly (i.e. realtime), and from any event that you may wish to be the trigger, i.e. changes in a control (e.g. tab page) reflected in the 'game' realtime, and visa versa.
oh, and here is an link to a brief example of how it could be done (seems OP Athos1984 already has it, so
placing it here may be a good reference for others too):
http://www.gamedev.net/community/forums/topic.asp?topic_id=499979
modified on Tuesday, July 8, 2008 7:26 PM
|
|
|
|
|
hi all,
I have a example coding which drawing to bitmap,but i am confusing the coding below which high light with red color.I am not sure what is the usage of Reverse() after AddPie().
protected override void OnPaint(PaintEventArgs pe)
{
gaugeBitmap = new Bitmap(Width, Height, pe.Graphics);
Graphics ggr = Graphics.FromImage(gaugeBitmap);
ggr.FillRectangle(new SolidBrush(BackColor), ClientRectangle);
GraphicsPath gp = new GraphicsPath();
gp.Reset();<br />
gp.AddPie();<br />
gp.Reverse();
ggr.SetClip(gp);
ggr.FillPie();
ggr.SetClip(ClientRectangle);
ggr.DrawArc();
}
thanks in advance
regards
cocoonwls
|
|
|
|
|
GraphicsPath.Reverse()[^]
Since you omitted big chunks of code, along with all relevant parameters, it's anyone's guess what the purpose of the call is. Comment it out and see what changes...
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
hi shog,
Thanks for your information.I got it
|
|
|
|
|
hi,,,,,
I have Pixel information for all letters in one Font(xxxxx Font).
I want to make BITMAP FONT using pixel information....
How can i move forward!!!!!!
Any sugestions!!!
Thank u....
|
|
|
|
|
First, you need to look at the specification for how the pixels are specified in the font file. Then you simply need to create a black and white, or other color, bitmap with those pixels filled in.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
Hi,
iam in c# windows application (.net framework 2.0)
iam displaying an image(*.jpg) in PictureBox Control..
now i want to draw a line or rectangle or any arrow mark over on image...
please help me how can i do this..
murali krishna
|
|
|
|
|
|
I wish to create a simple tool to open a video file ( for example an AVI, or wmv file) and allow user to edit the video file.
For example the user should be able to mark different portions of video and copy it to new video. So that the new movie file contains the selected parts only.
I read that DirectShow editing service allow us to do the job.
i have modified the sample code http://msdn.microsoft.com/en-us/library/ms787592(VS.85).aspx and no luck so far. I think i am missing something, since my knowledge in DirectX and grphics is very poor, I cant figure it out.
I added the following lines to get the splitable interface
IAMTimelineSplittable *pSplittable = NULL;
HRESULT hr = pSourceObj->QueryInterface(IID_IAMTimelineSplittable, (void **)&pSplittable);
and called the SplitAt function to split time line
hr = pSplittable->SplitAt2(5);
All thease function return success ( S_OK) and then i render the Timeline to file, it is same as the orginal file. No Splits actually happened.
Why? Any idea
Thanks
Anil
|
|
|
|
|
hi
I have task to join different map images on single Map.
How to do this
|
|
|
|
|
Are you asking how to make a large image from a mosaic of smaller ones or is the problem with aligning and matching the different parts of the map?
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
aadilali wrote: I have task to join different map images on single Map.
How to do this
I like to use Scotch Tape[^]. It's a little bit more pricey than the generic transparent tape, but tends to stay clear longer and is less prone to tearing. A good drafting table can also be helpful.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|