DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Rui Oliveira Guest

    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

  2. #2
    Eric Gunnerson Guest

    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




  3. #3
    Rob Abbe Guest

    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links