public class ImageExtensions extends Object
Contains extension methods for conversions based on System.Drawing.Image
and Image
.
Modifier and Type | Method and Description |
---|---|
static Image |
fromJava(BufferedImage image)
Converts the
BufferedImage to the PngImage . |
static com.aspose.ms.System.Drawing.Image |
toGdiImage(Image image)
Deprecated.
|
static BufferedImage |
toJava(Image image)
Converts the
Image to the BufferedImage . |
static BufferedImage |
toJava(Image image,
Rectangle subImageRect)
Takes the subimage from
Image and converts to the BufferedImage . |
@Deprecated public static com.aspose.ms.System.Drawing.Image toGdiImage(Image image)
Converts the Image
to the System.Drawing.Image
.
image
- The Image
to convert.
Warning, the GDI image may get lower bounds than image
has. To get all parts of the image use more safe extension method ToGdiImageFull.
System.Drawing.Image
.public static Image fromJava(BufferedImage image)
Converts the BufferedImage
to the PngImage
.
image
- The BufferedImage
to convert.PngImage
.public static BufferedImage toJava(Image image)
Converts the Image
to the BufferedImage
.
image
- The Image
to convert.BufferedImage
.public static BufferedImage toJava(Image image, Rectangle subImageRect)
Takes the subimage from Image
and converts to the BufferedImage
.
image
- The Image
to convert.subImageRect
- The rectangle of subimage to convert.BufferedImage
contains subimage taken from Image
.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.