image processing in c#

C

Chris

Hi,
I would like to create a small app - lets say a kind of Paint. What I need
to do is to be able to merge 2 or more images in one, split an image into
many parts, draw a point or line and then I would like to move it or delete.
I can use Graphics object to do it but it iis very slow. Any other ideas?
 
P

Peter Duniho

Hi,
I would like to create a small app - lets say a kind of Paint. What I
need
to do is to be able to merge 2 or more images in one, split an image into
many parts, draw a point or line and then I would like to move it or
delete.
I can use Graphics object to do it but it iis very slow. Any other ideas?

Define "slow". How exactly are you performing those operations?

In general, .NET is not an image processing library. Third-party
libraries may be faster, and will most certainly offer more features. If
you are up to it, and have a limited number of features you want to speed
up, you may find it useful to use the LockBits() method to get access to
the image data directly and implement your own operations from scratch.

But, assuming the operations you want to perform are supported in .NET, I
would not expect the speed difference to be so significant as to
completely preclude using the .NET implementation. Depending on the
context and the exact operation, a user might never notice the difference.

So the first thing to check is to make sure you are using the .NET
implementation in the most efficient way.

Pete
 
T

tm sari

salam



Peter Duniho wrote:

Re: image processing in c#
26-Aug-09

Define "slow". How exactly are you performing those operations

In general, .NET is not an image processing library. Third-part
libraries may be faster, and will most certainly offer more features. I
you are up to it, and have a limited number of features you want to spee
up, you may find it useful to use the LockBits() method to get access t
the image data directly and implement your own operations from scratch

But, assuming the operations you want to perform are supported in .NET,
would not expect the speed difference to be so significant as t
completely preclude using the .NET implementation. Depending on th
context and the exact operation, a user might never notice the difference

So the first thing to check is to make sure you are using the .NE
implementation in the most efficient way

Pete

Previous Posts In This Thread:

image processing in c#
Hi
I would like to create a small app - lets say a kind of Paint. What I nee
to do is to be able to merge 2 or more images in one, split an image int
many parts, draw a point or line and then I would like to move it or delete
I can use Graphics object to do it but it iis very slow. Any other ideas?

Re: image processing in c#
Define "slow". How exactly are you performing those operations

In general, .NET is not an image processing library. Third-part
libraries may be faster, and will most certainly offer more features. I
you are up to it, and have a limited number of features you want to spee
up, you may find it useful to use the LockBits() method to get access t
the image data directly and implement your own operations from scratch

But, assuming the operations you want to perform are supported in .NET,
would not expect the speed difference to be so significant as t
completely preclude using the .NET implementation. Depending on th
context and the exact operation, a user might never notice the difference

So the first thing to check is to make sure you are using the .NE
implementation in the most efficient way

Pete

Re: image processing in c#
Look at the source for Paint.net at www.getpaint.net

EggHeadCafe - Software Developer Portal of Choice
Dr. Dotnetsky's Cool .NET Tips & Tricks #15
http://www.eggheadcafe.com/tutorial...99a4-d74c89548125/dr-dotnetskys-cool-net.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top