-
Graphics and Image Manipulation in C#
Hi,
Im thinking of starting to use C# instead of Java. Can anyone tell me what
are the main differences between C# and Java (graphics and image manipulation)?
Java is very poor in graphics performance. Does anyone have performance results,
benchmarks between Java and C# concerning image manipulation?
Thank u,
Rui
-
Re: Graphics and Image Manipulation in C#
I don't have any Java measurements, but I can tell you that C# gives you the
option of dealing with images directly (ie as a big array of pixels) and
iterate over them with pointers. That gives a big speedup over the
non-pointer version in C#.
To convert a 2048 x 1536 color image to greyscale takes about 8.5 seconds in
my original version, but less than half a second in the version that uses
pointers.
Here's the column I wrote to discuss this:
http://msdn.microsoft.com/library/de...us/dncscol/htm
l/csharp11152001.asp
I'd suggest coding something simple in C# and Java and comparing the speed
yourself.
--
Visit the C# product team at http://www.csharp.net
This posting is provided "AS IS" with no warranties, and confers no rights.
"Rui Oliveira" <cplus.@127.0.0.1> wrote in message
news:3e36899c$1@tnews.web.devx.com...
>
> Hi,
>
> Im thinking of starting to use C# instead of Java. Can anyone tell me what
> are the main differences between C# and Java (graphics and image
manipulation)?
> Java is very poor in graphics performance. Does anyone have performance
results,
> benchmarks between Java and C# concerning image manipulation?
>
> Thank u,
>
> Rui
-
Re: Graphics and Image Manipulation in C#
Rui,
What is it you are doing in Java that is slow? Have you looked at JAI?
I do imaging work in Java the performance is quite good.
Rob Abbe
"Rui Oliveira" <cplus.@127.0.0.1> wrote:
>
>Hi,
>
>Im thinking of starting to use C# instead of Java. Can anyone tell me what
>are the main differences between C# and Java (graphics and image manipulation)?
>Java is very poor in graphics performance. Does anyone have performance
results,
>benchmarks between Java and C# concerning image manipulation?
>
>Thank u,
>
>Rui
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks