Class PictureDialogUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.dialogs.picture.PictureDialogUtils
-
public class PictureDialogUtils extends Object
Utilities for pictures operations.- See Also:
FileDialog
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
OPEN_IMAGE_FILTER_EXTENSIONS
static String[]
SAVE_IMAGE_FILTER_EXTENSIONS
-
Constructor Summary
Constructors Constructor Description PictureDialogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.swt.widgets.FileDialog
createOpenImageFileDialog(org.eclipse.swt.widgets.Shell parent)
CreatesFileDialog
to open image.static org.eclipse.swt.widgets.FileDialog
createSaveImageFileDialog(org.eclipse.swt.widgets.Shell parent)
CreatesFileDialog
to save image.static int
defineSaveImageType(String path)
Defines SWT type for the given extensionstatic org.eclipse.swt.graphics.Image
getTransparencyImage(org.eclipse.swt.graphics.Image original, int pixel)
Creates a newImage
with the given transparent pixel.
-
-
-
Method Detail
-
createOpenImageFileDialog
public static org.eclipse.swt.widgets.FileDialog createOpenImageFileDialog(org.eclipse.swt.widgets.Shell parent)
CreatesFileDialog
to open image.- Parameters:
parent
- the parent shell- Returns:
- the file dialog
-
createSaveImageFileDialog
public static org.eclipse.swt.widgets.FileDialog createSaveImageFileDialog(org.eclipse.swt.widgets.Shell parent)
CreatesFileDialog
to save image.- Parameters:
parent
- the parent shell- Returns:
- the file dialog
-
defineSaveImageType
public static int defineSaveImageType(String path)
Defines SWT type for the given extension- Parameters:
path
- the path to image, cannot benull
- Returns:
- the SWT image type
-
getTransparencyImage
public static org.eclipse.swt.graphics.Image getTransparencyImage(org.eclipse.swt.graphics.Image original, int pixel)
Creates a newImage
with the given transparent pixel.- Parameters:
original
- is the original imagepixel
- the transparent pixel- Returns:
- the image with transparent pixel
-
-