• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

convert c# to java code  RSS feed

 
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the below small c# code that i need to convert to Java.

Hope someone who knows the 2 programming languages help me to convert it to java.

thanks.
 
Java Cowboy
Sheriff
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C# and Java look a lot like each other. That piece of C# isn't very hard to understand if you know Java.

Have you looked at it yourself and tried to write some Java code that does the same? Are there specific things in the C# code that you don't understand?

The code is doing things with images. I've taken a short look at it and what it seems to be doing is that it loads an image, crops it and resizes it to generate a thumbnail.

If you want to learn how to work with graphics and images in Java, look at the 2D Graphics Tutorial.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wrote below 2 java methods:the cropping works but the image quality is poor.

how can i get highest image rendering quality ?

thanks.


 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!