Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (RasterCodecs codecs = new RasterCodecs())
- {
- //RasterImage object will hold the image data in memory
- RasterImage image = codecs.Load(@"License.png");
- //specify a jpeg format as the output RasterImageFormat
- codecs.Save(image, @"lossles.jpg", RasterImageFormat.Jls, 24);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement