This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, February 12, 2009 12:19:22 AM(UTC)
Groups: Registered
Posts: 74
hello,
My application is a windows based application using c#.net 2008 and .netframework is 3.5 and also using leadtools version 16.In my application,
I want to fill the area like,
Fill - Complete area filling, also know as a FloodFill, with control over both the method of filling and the features of filling.
Fill options include:
- solid
- gradient
- background tiled image
- opacity
- texture
- and more...
Fill types include:
- Surface - Fills an area starting at a specified point and continues in all directions that contain a specified color and some tolerance.
- Border - Fills an area starting at a specified point and continues in all directions until finding a specified color and some tolerance.
- Color replace - Replaces every pixel using the current fill settings.
#2
Posted
:
Thursday, February 12, 2009 7:43:05 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
We do not have a Flood Fill function. However, you can implement it using the following approach:
1- Use the AddMagicWandToRegion Method.
2- Fill the region FillCommand Class.
You can find an example that do this in our .NET help file under the "AddMagicWandToRegion Method" topic.
This will be like flood filling using a single color. There are other details involved if you want to fill with other types.
#3
Posted
:
Monday, February 16, 2009 1:08:57 AM(UTC)
Groups: Registered
Posts: 74
please give me simple code
#4
Posted
:
Monday, February 16, 2009 4:27:48 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can find an example code inside the "AddMagicWandToRegion Method" topic in our .NET help file.
The sample actually uses both AddMagicWandToRegion Method and the FillCommand. Did you try it?
#5
Posted
:
Monday, February 16, 2009 7:00:51 PM(UTC)
Groups: Registered
Posts: 74
helo,
Please give me more Details
Thanks
SSSKKK
#6
Posted
:
Monday, February 16, 2009 11:05:18 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I'm not sure what details you need, so I will explain the steps to get the example:
1. Open the LEADTOOLS 16 .NET help file.
2. Go to the help topic for the AddMagicWandToRegion Method. There's an online copy of the topic here:
http://www.leadtools.com/help/leadtools/v16/dh/l/leadtools~leadtools.rasterimage~addmagicwandtoregion.html
3. In that help topic, you will find a code sample both in C# and VB.NET. Copy the code to a small test project and try to run it.
If you face any problem with this code sample, feel free to send us the details of the problem.
#7
Posted
:
Tuesday, February 17, 2009 12:30:37 AM(UTC)
Groups: Registered
Posts: 74
hello,
The above code is not working.
#8
Posted
:
Tuesday, February 17, 2009 12:50:32 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
How exactly did you try the code? Did you create a very small test project (not your full application) and used the code in the help file with it? If yes, send me more details about the problem you are facing with the code. If you have created a new project (not your full application) to test the code and face a problem with it, send me this project in a ZIP or RAR file and I will check it for you.
#9
Posted
:
Tuesday, February 17, 2009 2:12:37 AM(UTC)
Groups: Registered
Posts: 74
heloo,
I cant draw an object
#10
Posted
:
Tuesday, February 17, 2009 7:10:38 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
In the example code, instead of taking the hard coded values of the X coordinate and Y coordinate of point, use the Mouse events to get your own values.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.