|
The only problem with this is the FileSystemWatcher does not do a good job of monitoring files in large subtree's, like an entire drive. There will be events that are lost or never fired for random files.
|
|
|
|
|
Besides what Dave mentioned the FSW class also won't work with Samba shares (according to their dev list to get acceptable performance levels they'd need to implement the feature in the kernel). There's an older, suckier win32 API that *usually* (but not in all configs) will work; but it requires more manual intervention on the part of the coder to use.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
hai friends,
i m trying to cluster the images.
the code given below is used for getting the number of bands of an image.
what code is used in c# for finding the same?
PlanarImage pimg;
int numBands=pimg.getSampleModel().getNumBands();
pls help out.
|
|
|
|
|
Where do you get this piece of code? What type is the object "pimg"? What framework do you use?
|
|
|
|
|
|
Not in Java, but in the "Java Advanced Imaging" library. If you want to manipulate images, check out the PictureBox .
Bitmaps[^] don't have "bands" in them, that's something that is provided by that particular library.
I don't know whether you can use that Java-library with .NET. As it says on the site: "For some code samples, Java 5 features are required."
--edit--
added an enter for better readability
I are troll
|
|
|
|
|
is it pixel value, i.e. color quantity? then how to get each pixel value of an image?
|
|
|
|
|
There's a GetPixel[^] method in the Bitmap class. That's one way of course (and a slow one) and I bet that there are some open-source image manipulation libraries for .NET.
I are troll
|
|
|
|
|
Using Visual Studio 2005, C#.Net.
|
|
|
|
|
Hi,
On a custom control when i try to draw a rectangle in the mouse move i cant able to remove the previous rectangle.It is visible, so when i drag mouse lost of rectangle appear in its path. In the mouse up i need to save the rectangle on the custom control
My requriment is to draw a rectangle or ellipes like MS paint.
How can i delete the previous rectangle in the mouse move before mouse up?
Thankyou
YPKI
|
|
|
|
|
override OnPaint() and draw rect. there as well as override OnMouseMove() and call Refresh().
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
|
|
|
|
|
You asked similar thing a day before. Why not search here or on google? There are lots of articles for related to drawing stuff in windows forms.
It is not that tough to do. You just need to understand Mouse events, Paint event and graphics class.
जय हिंद
|
|
|
|
|
Hi, how are you doing?
In microsoft excel, there is a option to take a polynomial chart, and in this chart there is a option to view a equation that chart done.
I need this equation in C#, I´m trying to use the component Microsoft.Office.Interop.Owc11, but I have not sucessful, I can see the equation in design mode but I can´t get in code mode.
Someone have some idea?
Thanks a lot
Marcio
|
|
|
|
|
Hello,
I'm not talking about Kyoto Protocol compliance... it appears that process().start does not respect the PATH environmental variable.
This may be the way that the function works, however; I'm storing the exe that will be started in a path that is in the PATH and attempting to start() it withotu specifying a path.
Is it possible to get start() to search the paths in the PATH variable and have no console window pop up? Apparently, the UseShellExecute property of startupinfo causes a console window to popup even if createnowindow is set to true.
string ApplicationPath = ("desktopiconcmd.exe");<br />
string ApplicationArguments = "save /y";<br />
<br />
Process ProcessObj = new Process();<br />
ProcessObj.StartInfo.FileName = ApplicationPath;<br />
ProcessObj.StartInfo.Arguments = ApplicationArguments;<br />
ProcessObj.StartInfo.UseShellExecute = true;<br />
ProcessObj.StartInfo.CreateNoWindow = true;<br />
ProcessObj.Start();<br />
ProcessObj.WaitForExit();
Thanks,
Matt
|
|
|
|
|
Problem solved:
ProcessObj.StartInfo.LoadUserProfile = true[^]
ProcessObj.StartInfo.UseShellExecute = false[^]
<br />
string ApplicationPath = ("desktopiconcmd.exe");<br />
string ApplicationArguments = "save /y";<br />
<br />
Process ProcessObj = new Process();<br />
ProcessObj.StartInfo.FileName = ApplicationPath;<br />
ProcessObj.StartInfo.Arguments = ApplicationArguments;<br />
ProcessObj.StartInfo.LoadUserProfile = true;<br />
ProcessObj.StartInfo.UseShellExecute = false;<br />
ProcessObj.StartInfo.CreateNoWindow = true;<br />
ProcessObj.Start();<br />
ProcessObj.WaitForExit();<br />
|
|
|
|
|
Hello
I need some help please regarding image transparency.
What I want to do is set an image transparency(jpg,png) with the help of a trackbar.
Best regards Andrei!
|
|
|
|
|
|
Luckily I know how to do that but sadly a picture box doesn't behave exactly like a form I didn't find any attributes regarding the opacity of a picture box in the code view
|
|
|
|
|
you will need to use ImageAttributes and ColorMatrix
ImageAttributes ia = new ImageAttributes();
ColorMatrix cm = new ColorMatrix();
cm.Matrix33 = 0.5f;
ia.SetColorMatrix(cm);
now you can use above ImageAttributes instance when drawing image.
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
|
|
|
|
|
Hay guys i want to fade the background of the form but i dont want to fade the controls in it. is this possabile? and btw the forms are loading in an mdicontainer
|
|
|
|
|
Look at the Opacity property of the Form and set it to a number close to zero
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
I cant because that will also fade the controls on the form. I need to fade only the background of the form.
|
|
|
|
|
what about trying something with the TransparencyKey property of the form.
you could try setting the form to be Red then using Red as the key, that way you may still get the controls full opacity. Im not 100% on this thou, do you want the form to be completely transparent or still some visible?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: what about trying something with the TransparencyKey property of the form.
TransparencyKey works only with exact color.
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
|
|
|
|
|
yeah which as i said, can use red to set form to be transparent and controls still visible. I can only work with the info the OP gives that why i asked more questions
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|