Class PictureUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.pictures.PictureUtils
-
public class PictureUtils extends Object
Provides picture manipulation helper methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<org.eclipse.swt.graphics.ImageData>
getImageDataByPicture(Picture picture, IPictureManager pictureManager, Function<InputStream,Optional<org.eclipse.swt.graphics.ImageData>> renderer)
Processes picture'sInputStream
using renderer and returns obtainedImageData
.static Optional<org.eclipse.swt.graphics.ImageData>
getImageDataByPicture(Picture picture, IPictureManager pictureManager, Function<InputStream,Optional<org.eclipse.swt.graphics.ImageData>> renderer, boolean isRtl)
Processes picture'sInputStream
using renderer and returns obtainedImageData
.
-
-
-
Method Detail
-
getImageDataByPicture
public static Optional<org.eclipse.swt.graphics.ImageData> getImageDataByPicture(Picture picture, IPictureManager pictureManager, Function<InputStream,Optional<org.eclipse.swt.graphics.ImageData>> renderer, boolean isRtl)
Processes picture'sInputStream
using renderer and returns obtainedImageData
.- Parameters:
picture
- Picture to be processed, cannot benull
.manifest
- Picture'sIPictureManifest
renderer
- Picture renderer that parses picture'sInputStream
and returnsImageData
, cannot benull
isRtl
-Boolean.TRUE
if RTL-based picture is requested, can benull
- Returns:
- Optional
ImageData
, nevernull
but may returnOptional.empty()
in case if renderer didn't manage to parse imput stream for some reason
-
getImageDataByPicture
public static Optional<org.eclipse.swt.graphics.ImageData> getImageDataByPicture(Picture picture, IPictureManager pictureManager, Function<InputStream,Optional<org.eclipse.swt.graphics.ImageData>> renderer)
Processes picture'sInputStream
using renderer and returns obtainedImageData
.- Parameters:
picture
- Picture to be processed, cannot benull
.manifest
- Picture'sIPictureManifest
renderer
- Picture renderer that parses picture'sInputStream
and returnsImageData
, cannot benull
- Returns:
- Optional
ImageData
, nevernull
but may returnOptional.empty()
in case if renderer didn't manage to parse imput stream for some reason
-
-