|
Can you express this area as a Region (System.Drawing)?
If so can you create a Region from the image and use
Graphics.FillRegion()?
gigahertz205 wrote: I set a specific value of intensity (for greyscale) or color within that region so fillrectangle is out of the question.
What do you mean by that? Your original post stated all the
pixels in the area will be the same color. You can use any color
brush you want to with FillRectangle()
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
1.creat a new bitmap (with new color)
2.put the new bitmap on you want area using GDI+
|
|
|
|
|
u can make a new bitmap with u want color
and put it on your want change area using GDI+
|
|
|
|
|
Hi guys, I am looking for application that looks a like PowerPoint. Bascially, it should be able to show you the view on the left while the clip objects are being edited like moving on the stage. I searched on CP but they are either reading from the app or writing in the power point. Can somebody provide me a link to a useful resource to get started.
Thanks
|
|
|
|
|
netJP12L wrote: Hi guys, I am looking for application that looks a like PowerPoint
Do you have a C# question or are you lost? If you are lost I believe we have some fellow Canadians on CP that might be able to help you out.
led mike
|
|
|
|
|
Yes I had question related to C# sir that's why I requested for help. I am wondering if somebody developed something like that in C#.
|
|
|
|
|
netJP12L wrote: I am wondering if somebody developed something like that in C#.
Ah, yeah I didn't get that from your first post. I can be dense sometimes.
led mike
|
|
|
|
|
So what would you like to recommend me. Would you like to share any resources that may help me out.
Thanks
|
|
|
|
|
No. I wouldn't imagine that anything like that exists, but it never hurts to look. Don't limit your search to CP. Use Google and certainly check SourceForge[^]
led mike
|
|
|
|
|
hi,
when I switch the form view, form.designer.cs corrupts and when I run the code Anchors change their positions
today I installed Visual Studio 2008 sp1...
According to me, menu can be cause it
any ideas?
thanx...
I want to fly but I don't have wings
|
|
|
|
|
You are not suppose to change stuff inside the form.desiner.cs .....If you want to change your control behaviour you may either do at the design time or within the form.cs file.
|
|
|
|
|
hi there! I want to save a xml document at the local disk from a string what I am getting from a database. can someone point me at some direction how I can do that? Thx ahead
|
|
|
|
|
Assuming xmlString contains valid xml from the DB and xmlFullPath contains a valid path with filename and permissions are OK.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xmlString);
xmlDoc.Save(xmlFullPath);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
the path is like for example:
string path = "C:\\XML";
and it doesn't want to save there, it just goes through all the lines and it does not save
this is the code
string xmlFullPath = "C:\XML";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xmlOrder_Data);
xmlDoc.Save(xmlFullPath);
and it goes without saving at the local directory. Any help? Thx
|
|
|
|
|
laziale wrote: and it goes without saving at the local directory. Any help?
I should save the file otherwsie and exception would be thrown
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
laziale wrote: string xmlFullPath = "C:\XML";
Did you leave out a backslash?
|
|
|
|
|
noo..it was C:\\XML, without one backslash its giving me the escape sequence error
|
|
|
|
|
I tried your code, substituting a string containing valid XML for xmlOrder_Data and wound up with a document named XML in my C:\ - if I passed invalid XML (or no XML) to LoadXML() , I threw an exception on the Save() method.
Have you tried stepping through the code?
Sincerely,
-Mark
mark@msdcweb.com
http://www.msdcweb.com
|
|
|
|
|
Yes, I step through the code as well. But I will try tomorrow again. Maybe I need to fix something as well. Thx for the cooperation.
|
|
|
|
|
I want to go to a specified node in TreeView.
How can I do it?
Hello Friends
|
|
|
|
|
Locate the node using the control's Nodes property. Then set the control's SelectedNode property.
/ravi
|
|
|
|
|
Thanks
But can you make a sample for me in one line code?
Thanks in advanced
Hello Friends
|
|
|
|
|
No. But, I'll be more than happy to help if you have a specific question after trying to do this yourself.
/ravi
|
|
|
|
|
I tried this way for many time but I couldn`t get ane success
Help me please
I need your help immediately
Thanks
Hello Friends
|
|
|
|
|
How to use this exactly?
Hello Friends
|
|
|
|