|
Hi,
Yeah dropout means color filtering.I had successsfully filtered out the color from the whole image and it takes only 1 second so i am thankful to you.
Now another requirement is that i have to filter the color as per user selected area.
like
here i am describing whole:
when user select a particular area by rectangle then my function should filter(dropout) that color from whole image.
This is my requirement,Now can u tell me how to do that ?
|
|
|
|
|
When the user selects a rectangular area, there can be several colors included. Do you want to filter all these colors?
mav
|
|
|
|
|
Yeah.You understood my point.
I have to filter all these colors,so by that i am providing user facility according to his selected color filtered from the image.
what is now to do?
|
|
|
|
|
Hi,
Yeh Actually when user select one rectangle area then i am planning to take the Averange R,Average G and Average B value and after storing all the value in some object ,i can compare with all pixels and remove color which are related to Averange R,Average G and Average B,so can you tell me is that logic work for filtering the image in user selected color filteration?
can you pls tell me is that work out?
|
|
|
|
|
How can write a program can get(read) text any where on screen at a position.
|
|
|
|
|
levgiang, is that you, now trying anonymously?
This topic has been discussed in this forum before[^], please try using the search function before posting.
mav
|
|
|
|
|
How many times are you going to ask this question? Better yet, how many times are we going to tell you that it's EXCEEDINGLY difficult and there is no reliable way to do it, before it finally sinks in? The answer is not going to change, so why keep asking the question?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I've heard that definition before. It's kind of startling to consider what trusted figures and institutions are rendered insane by that standard...
...door to door salespeople
...lots of executive level managers
...many organized religions
...whole humanitarian organizations
...the US penal system
...tier one technical support operators
Okay. That's enough examples. The definition is satisfactorily proven.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
...the average corporation
/\ |_ E X E GG
|
|
|
|
|
Hi
I need to convert a bitArray over to bytes, byte array.
Or write the bits out to file to be read again as bytes.
Any advise or help would be welcomed
Thank you.
|
|
|
|
|
Hi
Try this:
<br />
BitArray Bits=new BitArray(10,true);<br />
int ByteArrayLength=(int)Math.Ceiling(Bits.Length/8f);<br />
int CurrentByte=0;<br />
int CurrentBit;<br />
byte[] Bytes=new byte[ByteArrayLength];<br />
for(CurrentBit=0;CurrentBit<Bits.Length;CurrentBit++)<br />
{<br />
if(CurrentBit+1%8==0)<br />
CurrentByte++;<br />
if(Bits[CurrentBit])<br />
Bytes[CurrentByte]|=(byte)(1<<CurrentBit);<br />
}<br />
|
|
|
|
|
Thank you that is beautiful and simple, just what I needed.
|
|
|
|
|
Hi,
I'm changing jobs soon and my new boss likes me to become an 'expert' in Crystal Reports. So far I've only heard of it.
A quick look on MSDN pointed me from link to link to link, without any descent information. (I truly hate MSDN, I'm never quite able to find anything useful on it and it's always pointing me to other pages that has the information I seek (another link) )
Can anyone give me a good link or point out where to look for a good start?
(So I'm a bit prepared when actually starting)
tnx!
No hurries, no worries.
|
|
|
|
|
See the Crytal Reports Help and practice a lot.
<italic>Work hard, Work effectively and a bit of luck is the key to success.
|
|
|
|
|
no books you recommend?
No hurries, no worries.
|
|
|
|
|
I had to learn CR on the spot as well, although this was back with v 8.5....about four years ago. The manual was very helpful and their free tech support line was also nice. But really you just need to play with it. Get a database with any data i.e. Northwind Cataloge from SQL Server, and just start creating reports from it. I thought the largest obsticle was learning the syntax of the formula builder. I was pro after a couple weeks...good luck
|
|
|
|
|
Yes, no need for books. Practice is the key.
<italic>Work hard, Work effectively and a bit of luck is the key to success.
|
|
|
|
|
Hi folks!
I will ask very simple question.Unfortunately I still could not understand the reason.
Suppose that you have a master-detail forms based application.When I open the detail form of the application I use the new keyword to create a new instance..It's ok...But when I try to access the Master form properties(for example Form1's textbox1) WHY DO I HAVE TO CREATE A NEW INSTANCEOF FORM1.Behind the scene it is already open..Right???
Please tell me something about this...
THANKS FOR ALL!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
Hi!
I don't know exactly what code you refer to but when you have two form instances, each instance has at some time been created using new.
If you try to access the properties of one form from the other one you have to have a reference to the other form.
If you don't have the reference, you can't access the properties, simple as that.
If you're trying to create a new instance in order to access some properties you're likely to access the properties of the wrong object.
mav
P.S.: "Multiple exclamation marks, are a sure sign of a diseased mind" (Terry Pratchett, Reaper Man)
|
|
|
|
|
ok, let me see if understand you... You have two (or more forms but lets just take two) forms one being the parent of the other (Master-Detail ?)
You want to open the child form and access the properties of the parent form from within the child form ?
Much like mav said just create a reference to the parent form....
public System.Windows.Form ParentForm=null;
ChildForm CF = new ChildForm();
CF.ParentForm=this;
CF.Show();
now you should be able to access all internal/public props and methods of your parent form from you child form.
NOTE: I did not test the above code, I just typed it....
|
|
|
|
|
The simplest way I can explain my problem is this.
I have several forms each containing a task specific user control. Now only one form has it's ShowInTaskbar property set to true the rest are set to false. All the resize and movement event handlers work so when one form is moved the whole collection of forms move with it as one unit. The problem I'm having is when I say click on the taskbar to check my code in VS and it covers the forms as it's running then click back on my program in the taskbar only the the form with it's ShowInTaskbar property set to true pops up. The rest stays behind. All I'm looking for is what event is raised when the user clicks on an inactive (or minimized) program on the taskbar and the quickest way to redraw all the other forms after the event handler fires.
Thanks ahead a time for the help
Ryan
|
|
|
|
|
I don't exactly now how you would do it in C#, but when you get the SizeChanging event for the form that will be active, bring the other forms to top. With the Win32 API, you would use SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE) to bring the window to the top of the Z-order.
Maybe you'll have to use P/Invoke, or you could set the focus to every window and then to the one being restored, but that would show some flicker.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
This Article shows how to get events for changing window states.
For the other one I would just loop thorugh the forms and set the windowstate to normal (dunno if its fast).
|
|
|
|
|
Well you could override the Activated event on your main form.
I assume you have the other forms in an array or something..
try this...
private void Form1_Activated(object sender, System.EventArgs e)
{
foreach(System.Windows.Forms.Form MyForm in FormArray)
MyForm.Activate();
}
|
|
|
|