|
You can't, if the image is being displayed smaller then it really is as a background, it has only has as many pixels as the form does. A pixel is a uniform size. See this if you don't get what I'm saying.
modified on Saturday, December 19, 2009 8:46 PM
|
|
|
|
|
I get what you are saying, but i thought we could solve this by doing some math, which i completely suck at
I have seen some vnc client do something similar to this, it has an option to autoscale/stretch the client view to any size but yet it can translate the current mouse location to original screen coordinates 
|
|
|
|
|
One thing to consider would be figuring out what percentage into the image the position is horizontally and vertically and then placing the point at the same percentage in on the larger image. not 100% sure it will work but it works in my head at least.
|
|
|
|
|
I did a quick test and it wasnt able to get the exact pixel but it works much much better then my own formula,atleast im little cloesr to my goal now
Thanks for your help 
|
|
|
|
|
how to convert wav sound to any type of sound?
|
|
|
|
|
|
how to use m-file in C# with out setup matlab ?
|
|
|
|
|
A 5 second google search turned up this[^].
Research. Give it a try sometime.
![Badger | [badger,badger,badger,badger...]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/badger.gif)
|
|
|
|
|
Hi
I need report by crystalreport that the details of this report is:
This report is the result of a meeting that this report must show the subject of the meeting and members of the meeting and explanation of the meeting .I get this information from a dataset and this dataset has two datatableadapter.
One of this two datatableadapter is give me members of the meeting and another one has subject and explanation of meeting.
Maybe this report show several meeting and each meeting has one subject and one explanation but has several members and it must show each of the meeting separately.
What type of crystalreport should i choose during of the process of making a crystalreport?
Please somebody help me.
|
|
|
|
|
farokhian wrote: What type of crystalreport should i choose during of the process of making a crystalreport?
I think it is best if you create in design then the templates provide
|
|
|
|
|
Thx;
I create a reporting project but i can't find any choices like what you said?!
|
|
|
|
|
farokhian wrote: but i can't find any choices like what you said?!
Quote Selected Text
What choice? Design view is where you drag and drop fields into report
|
|
|
|
|
How can I loop through every single toolstripmenuitem in a toolstrip, including the subitems of each item, and each of the subitems of that item, and each of the subitems of that item (with no set limit to how deep it can go)?
|
|
|
|
|
Make a function to call itself, but beware you can easly get infinitive loop if you are not careful.
Recursion made simple[^]
|
|
|
|
|
Thanks, wasn't think of it that way.
|
|
|
|
|
Hello.
Does someone have a simple sample for flood filling for a picture, or even better a sample of how to count the pixels instead.
What I want is to count the pixels with the same color that touch eachother. I saw some flood filling you could rewrite, but those are very complicated so a simple sample for that would also be great.
Hope you can help.
|
|
|
|
|
It's not complicated at all, just change the "colourPixel" or whatever they call it to "counter++" or something like that
|
|
|
|
|
I'm trying to create a window with a border like the Intelli-sense one has under Vista/7
Example image
It has a glass border, no title bar and it IS NOT re-sizable
I've been trying all day to emulate this border style, even by copying the style Spy++ says it uses to no avail. (I even tried modifying CreateParams to use the parameters the window does- no luck)
How can I implement this kind of Window?
|
|
|
|
|
|
Hey Guys,
I am performing restore and backup of databases in my application .Can anyone help me to implement a progress bar for this whole process ?
Thanks,
Vikas
vikas da
|
|
|
|
|
Hi,
CodeProject hosts a lot of articles on progress bars, some or good, some not.
Progress can only be reported to the user if the operation consists of multiple steps and you know (or can somehow estimate) the relative duration of each step.
If OTOH your backup basically consists of a single SQL (or other) statement, then it is impossible to report progress as there are only two states: nothing done (before the statement) and all done (after the statement).
|
|
|
|
|
No there are multiple steps i need to perform . Can you please provide me some links related to progress bar.
Thanks,
Vikas
vikas da
|
|
|
|
|
|
I draw line on windows form, using following function.
private void DrawLine(Point pPoint, Point pFisrtPoint)
{
Graphics graph = this.CreateGraphics();
Pen pen = new Pen(Color.Red);
graph.DrawLine(pen, pPoint, pFisrtPoint);
}
How can I get painted points coordinates?
|
|
|
|
|
hi,
that is bad code for several reasons:
- when no longer needing objects that you created and have a Dispose() method should be disposed, especially the expensive ones such as a Graphics;
- Pens.Red is for free;
- within a Paint handler, the Graphics is for free, see PaintEventArgs.
- you should not use CreateGraphics except as a last resort.
I suggest you read this[^].
BTW: the pixels modified by a DrawLine are on or near the line you paint, which exactly depends on some parameters, such as SmoothingMode I guess.
|
|
|
|