|
I don't think the 2D Drawing methods are object aware and you would likely have to create your own code, which would be slow.
One thing I do know, however, is that AntiAlias should not be applied until after the transparency or you will get a glow.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
but What do i have to create my own.....Could you provide me any helpful link or a code snap plz
|
|
|
|
|
If you want to draw your own then you need to draw the lines your self and for each pixel determine if it is within the bounds of another polygon. Use the even/off fill algorithm for efficient filling.
One other option is to define regions and XOR the regions before drawing to the bitmap.
As for links I have none and would search the web to find them so ...
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hi every one,
I m working on a client server application which communicates through remoting.
Now what i want is when client send request to server and after the request execution a notifier should popup on the client task bar to notify the successful execution of the request.
|
|
|
|
|
You don't say what type of app so I'll assume WinForms - you'll need to get your server to send a confirmation message back to the client to say it suceeded and use a NotifyIcon in the client app to display the message.
|
|
|
|
|
|
Hi,
In .NET, I found this term "Dirty" in so many places like
_viewState.SetDirty(true);
myObject.RegisterForDirtyRange(var1, out var2);
etc. My assumption was like this. If I implement some logic with very hardcoded core language statements which is almost closed to machine language or very lower level language, then that code is termed by DIRTY code. But what is other special meaning of Dirty in .NET ? I searched in Google and millions of titles shows up with the word Dirty which does not provide me the basic answer, rather, something else. So, would you please give me a clue !!
thank you.
|
|
|
|
|
Normally it means the data has changed. e.g. If you loaded a text file and then edited it, the document is now 'Dirty' until saved.
|
|
|
|
|
Thank you very much. Now I got it.
|
|
|
|
|
Hello,
Am trying to bind data.This is my code.Is there any problem with my code since it does not seem to work.
Take your time.
Thanking You
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace TestDb
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnInsert_Click(object sender, EventArgs e)
{
OleDbConnection conObj = new OleDbConnection();
conObj.ConnectionString=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\j\My Documents\MyDb.mdb";
conObj.Open();
OleDbCommand cmdObj = new OleDbCommand();
cmdObj.CommandText = "Insert into MyTable(Name) values ('" + txtName.Text + "')";
cmdObj.Connection = conObj;
cmdObj.ExecuteNonQuery();
txtName.Clear();
}
private void btnBind_Click(object sender, EventArgs e)
{
OleDbConnection conObj = new OleDbConnection();
conObj.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\j\My Documents\MyDb.mdb";
conObj.Open();
OleDbCommand cmdObj = new OleDbCommand();
cmdObj.CommandText = "select Name from MyTable";
DataSet ds = new DataSet();
cmdObj.Connection = conObj;
OleDbDataAdapter adapObj = new OleDbDataAdapter();
adapObj.SelectCommand = cmdObj;
adapObj.Fill(ds);
}
}
}
|
|
|
|
|
Trustapple wrote: Hello,
Am trying to bind data.This is my code.Is there any problem with my code since it does not seem to work.
Take your time.
Thanking You
I didn't look at the code you provided, because you weren't specific. When you say "it doesn't work," you need to be more specific. How does it not work? Does it get errors on build, a run-time exception, or does it just sit there and do nothing? Have you tried setting breakpoints to see what your code is doing?
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
In future posts, please use the <code></code> tags to make your code easier to read
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: please use the <code></code> tags
Absolutely not. Don't use CODE tags for multi-line stuff, they are for single-line things only.
Multi-line code should be in PRE tags which preserves formatting. With two caveats:
- empty lines disappear, so add a space tot them
- less-than signs followed by a letter will be eaten by the HTML deamon, therefore replace < by <
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
That's right, my bad. I remember we did a big investigation on this last summer I thought it was pre and code together.
"What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?" - Justin Perez
|
|
|
|
|
someone should sticky this..I keep forgetting.
Steve Welborn
Software Engineer
Inrange Consulting
|
|
|
|
|
Look at Luc's article he did on the topic.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Trustapple wrote: using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
Can you paste the code of libraries you used as well?
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
hi i want to make a simple explorer withe tab's
but i need to know hoe to look wich browser is active and then make my buttens work only for that browser
can sum one tll me how it works
|
|
|
|
|
Please use better English.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hello!
You said it yourself,
precious roy wrote: simple explorer withe tab's
And we all know tab controls do have SelectedIndex, SelectedIndexChanged and SelectedTab like stuff, which are usually used for knowing which tab is active.
Regards,
Adeel
PS: You are highly recommended to upgrade your english compiler!!
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
Hi every body.
Can any body help me plz
I have a task that requires to read the text on a image
My requirement is
I take a image of a vehicle number plate through a web cam or a usb camera.
Now when i get the image when i click a button i should get the numberplate number into a text box I need this functionality using c#,vb.net plz help me i am doing my B.tech final year project, I would be very much thank full if any one will help me
thanks in advance
with regards
harivinod
|
|
|
|
|
You posted your question in 4 different forums huh? How rude. Read the forum rules. All this time you spent cross-posting, and waiting for someone to reply, you could have done research to get the answeres yourself.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: you could have done research
Like using google?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: Like using google?
Not quite, I'm guessing this person is a complete retard. First he would have to research how to use google.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: First he would have to research how to use google
Yep. And I was a bad guy for not providing him a clickety to it. I guess that is left as an exercise for him if he can do it
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|