|
|
|
if you're not satisfied by some simple component, such as MessageBox, roll your own. It ain't hard at all. It is easier than getting it to do what you want against it's own will.
|
|
|
|
|
Hi,
I have images of human body parts. Is it possible to view the image at its actual real world size.
How can I achieve this ?
How do I confirm whether current size of the image is same as its real world size?
Thanks in advance for all the help & suggestions.....
|
|
|
|
|
You must get the DPI. For example the picture has 96dpi and the size is 1024x768 pixel.
1024/96 -> 10.67 inch
768/96 -> 8 inch
That means : the print size is 10.67 x 8 inch
|
|
|
|
|
thanks stancrm,
will this ensure that the image, say that of a knee will be exactly of the same size of the person's knee whose knee was pictured ?
|
|
|
|
|
if you have a camera that can take a picture 1:1, then yes...
|
|
|
|
|
Hi,
you will need the following:
1. most camera's generate JPG files, with embedded tags containing a lot of parameters;
2. GDI+ can paint images at their actual size, see Graphics.DrawImageUnscaled;
3. your system has a DPI setting (defaults to 96) which you can change to correspond to the actual resolution (in dpi) of your monitor; you can calculate the required value like so:
Math.Sqrt(screenWidthPixels^2+screenHeightPixels^2)/screenDiagonalInches*100/96
the square root calculates number of pixels on the diagonal;
the final 100/96 is needed because Windows expects the number as a percentage of 96dpi, the default value.
You may be a bit out of luck if you use multiple monitors with different DPI values.
4. Your printer drivers should take care of DPI settings all by themselves.
|
|
|
|
|
Have you really thought this out?
Are you sure your monitor is big enough to display say a full length shot of a spine? You will also need a very good camera otherwise the picture will be rubbish.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Does any one know how to develop office projects in windows applications?
i.e.,Developing Add-ins for Word using VSTO
Thanks..
|
|
|
|
|
Can anybody tell me how to create sub domain programmatically by C#
Thanks
|
|
|
|
|
Like this[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Using System.Diagnostics, I am able to track all the process and applications running in task manager.
Checked every blog, but there is no information about tracking the path of applications running in taskmanager's application tab.
I am getting path of process: using string q = Process.GetCurrentProcess().MainModule.FileName;
1. But for applications's path there is no option as such. Only name of the application can be tracked using "MainWindowTitle".
2. Even no of similar applications like if there are two excel applications are running then i want to find out the count but there is no option for MainWindowTitle count.
nyone knows about this, then please give me clue.
Thanks & Regards,
gtag
|
|
|
|
|
Do you want to get the application path of all running processes ?
Process[] processes = Process.GetProcesses();
foreach(Process process in processes)
{
Console.WriteLine(process.MainModule.FileName);
}
|
|
|
|
|
It will give path of all running processes which u will find in task manager's process tab.But I need path of applications related to process which u will find in task manager's application tab.
I need the path of process.MainWindowTitle's .
|
|
|
|
|
|
Thank you but
I already checked above blog, its just giving the list of applications in application tab of task manager but I need even path(physical path of application on machine).
I mean application's(MainWindowTitle's) location in disk.
|
|
|
|
|
hei... think... you get the Process and use MainModule.Filename
that is the application path.
|
|
|
|
|
I don't understand what it is you want, and seems like neither do the others. So stop repeating yourself, and improve your question using more and other words, and maybe some examples.
|
|
|
|
|
Anyone know how / where to put in reg settings so an app executes on start up in Vista ??
I don't see a currentversion/run reg path ..
Thanks in advance !
|
|
|
|
|
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have a method that creates a new process and calls the command line. I can get standardoutput into the procResults strings for most of my calls. But for some reason when I use this method to call devenv to build a c# solution I don't get anything in standardoutput. It seems like it finishes the call because all new files are built and I can see the last modified date is the current time, but the procResults string is empty. Here is my call:
'devenv alphacetui.sln /rebuild "debug|x86"'
it seems like it finishes ok because I get a p.Exitcode = 0;
Does anyone have experience calling devenv from system.process or know why I'm not getting output?
when I run devenv alphacetui.sln /rebuild "debug|x86" from the command line it works fine and I can see the output in the command window.
public void method()
{
Process p = new Process();
p.StartInfo.FileName = "devenv";
p.StartInfo.Arguments = "alphacetui.sln /rebuild \"debug|x86\"";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
string procResults = p.StandardOutput.ReadToEnd();
p.WaitForExit();
}
|
|
|
|
|
Hello All;
I am getting an exception when trying to load my XML file with C#.
Here is my XML:
<?xml version="1.0"?>
<CADLaunch>
<LastAutoCADVersion>AutoCAD MEP 2009</LastAutoCADVersion>
<LastProfile>ShopData Old</LastProfile>
</CADLaunch>
And the code to load it:
XmlDocument test = new XmlDocument();
if (File.Exists(supportDir + "\\LaunchCAD.xml"))
{
test.LoadXml(supportDir + "\\LaunchCAD.xml");
}
The load line is giving me this exception:
An unhandled exception of type 'System.Xml.XmlException' occured in System.Xml.dll
Additional Information: Data at the root level is invalid. Line 1, position 1.
I can't tell what I am doing wrong...
Thanks in advance.
|
|
|
|
|
|
...it's always the simplest answer you overlook the most...
I will try it. But do you know if I will still be able to search for nodes by just using 'Load'?
|
|
|
|