Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. using (RasterCodecs codecs = new RasterCodecs())
  2. {
  3. //RasterImage object will hold the image data in memory
  4. RasterImage image = codecs.Load(@"License.png");
  5. //specify a jpeg format as the output RasterImageFormat
  6. codecs.Save(image, @"lossles.jpg", RasterImageFormat.Jls, 24);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement