Available Methods
- NONE
- BORDER
- V_SCROLL
- PUSH
- CHECK
- LEFT
- MULTI
- SINGLE
- READ_ONLY
- OK
- H_SCROLL
- FILL
- CENTER
- WRAP
- error ( )
- ICON_ERROR
- RIGHT
- NULL
- HORIZONTAL
- FULL_SELECTION
- BOLD
- SEPARATOR
- DEFAULT
- RADIO
- RESIZE
- FLAT
- VERTICAL
- TOP
- DROP_DOWN
- ITALIC
- NORMAL
- SAVE
- ICON_INFORMATION
- CTRL
- SHIFT
- NO_FOCUS
- APPLICATION_MODAL
- DIALOG_TRIM
- DOUBLE_BUFFERED
- OPEN
- CR
- ARROW_DOWN
- Selection ( )
- YES
- CANCEL
- BOTTOM
- NO_BACKGROUND
- NO
- CLOSE
- ICON_WARNING
- RIGHT_TO_LEFT
- LEFT_TO_RIGHT
- TOGGLE
- SHEET
- DOWN
- BEGINNING
- MAX
- ARROW_LEFT
- ARROW_RIGHT
- NO_TRIM
- END
- ON_TOP
- MIN
- ARROW_UP
- KeyDown ( )
- KeyUp ( )
- ICON_QUESTION
- Dispose ( )
- ALT
- CASCADE
- VIRTUAL
- SHADOW_ETCHED_IN
- PAGE_UP
- DEL
- FocusOut ( )
- Traverse ( )
- PASSWORD
- SHELL_TRIM
- ARROW
- Deactivate ( )
- BS
- FocusIn ( )
- ESC
- LEAD
- MouseUp ( )
- SMOOTH
- MouseDoubleClick ( )
- TRAVERSE_TAB_NEXT
- UP
- MouseDown ( )
- TITLE
- Paint ( )
- PAGE_DOWN
- Move ( )
- HOME
- SHADOW_IN
- TRAVERSE_TAB_PREVIOUS
- F2 ( )
- LINE_SOLID
- HIDE_SELECTION
- JOIN_BEVEL
- SHADOW_NONE
- Modify ( )
- BAR
- SEARCH
- COMMAND
- LINE_DASHDOT
- ICON_SEARCH
- TAB
- SHADOW_OUT
- LINE_DASH
- KEYPAD_CR
- LINE_DOT
- JOIN_ROUND
- MOD1 ( )
- TOOL
- MODIFIER_MASK
- CURSOR_ARROW
- IMAGE_GIF
- LF
- MouseEnter ( )
- MouseMove ( )
- TRAVERSE_ARROW_PREVIOUS
- UNDERLINE_LINK
- MODELESS
- CURSOR_HAND
- IMAGE_JPEG
- MouseHover ( )
- CURSOR_WAIT
- getPlatform ( )
- IMAGE_BMP
- PRIMARY_MODAL
- CAP_FLAT
- UNDERLINE_ERROR
- POP_UP
- CAP_ROUND
- SIMPLE
- DATE
- EraseItem ( )
- TRANSPARENT
- TIME
- CAP_SQUARE
- COLOR_DARK_GREEN
- FOREGROUND
- INHERIT_DEFAULT
- KEYPAD_SUBTRACT
- TRAVERSE_ARROW_NEXT
- Help ( )
- LINE_DASHDOTDOT
- TRAVERSE_ESCAPE
- MouseExit ( )
- JOIN_MITER
- NO_SCROLL
- Collapse ( )
- F9 ( )
- FILL_WINDING
- HIGH
- ERROR_NULL_ARGUMENT
- BORDER_DOT
- CAPS_LOCK
- ICON_CANCEL
- KEYPAD_4 ( )
- PATH_MOVE_TO
- MOD2 ( )
- INDETERMINATE
- NO_REDRAW_RESIZE
- INSERT
- DefaultSelection ( )
- SYSTEM_MODAL
- IMAGE_COPY
- CALENDAR
- BACKGROUND
- MOD4 ( )
Related Classes
- java.io.File
- org.eclipse.swt.widgets.Composite
- org.eclipse.swt.widgets.Display
- org.eclipse.swt.widgets.Button
- org.eclipse.swt.widgets.Label
- org.eclipse.swt.widgets.Shell
- org.eclipse.swt.layout.GridData
- org.eclipse.swt.widgets.Text
- org.eclipse.swt.layout.GridLayout
- org.eclipse.swt.events.SelectionEvent
- org.eclipse.swt.events.SelectionAdapter
- org.eclipse.swt.widgets.Control
- org.eclipse.swt.graphics.Image
- org.eclipse.swt.widgets.Group
- org.eclipse.swt.widgets.Event
- org.eclipse.swt.graphics.Point
- org.eclipse.swt.graphics.Color
- org.eclipse.ui.PlatformUI
- org.eclipse.swt.widgets.Listener
- org.eclipse.swt.events.SelectionListener
- org.eclipse.swt.events.ModifyListener
- org.eclipse.swt.widgets.Combo
- org.eclipse.swt.widgets.FileDialog
- org.eclipse.swt.events.ModifyEvent
- org.eclipse.jface.viewers.IStructuredSelection
Java Code Examples for org.eclipse.swt.SWT#IMAGE_GIF
The following examples show how to use
org.eclipse.swt.SWT#IMAGE_GIF .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SwtImage.java From AppleCommander with GNU General Public License v2.0 | 6 votes |
/** * Save the image. */ public void save(OutputStream outputStream) throws IOException { ImageLoader imageLoader = new ImageLoader(); imageLoader.data = new ImageData[] { imageData }; int format = SWT.IMAGE_PNG; if ("BMP".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_BMP; } else if ("RLE".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_BMP_RLE; } else if ("GIF".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_GIF; } else if ("ICO".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_ICO; } else if ("JPEG".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_JPEG; } else if ("PNG".equals(getFileExtension())) { //$NON-NLS-1$ format = SWT.IMAGE_PNG; } imageLoader.save(outputStream, format); }
Example 2
Source File: AbstractVTestCase.java From nebula with Eclipse Public License 2.0 | 5 votes |
public void setCaptureFormat(int format) { switch (captureFormat) { case SWT.IMAGE_BMP: case SWT.IMAGE_GIF: case SWT.IMAGE_ICO: case SWT.IMAGE_JPEG: case SWT.IMAGE_PNG: case SWT.IMAGE_TIFF: captureFormat = format; break; default: captureFormat = SWT.IMAGE_PNG; } }
Example 3
Source File: ExportToImageManager.java From erflute with Apache License 2.0 | 5 votes |
public void doProcess() throws IOException, InterruptedException { if (format == SWT.IMAGE_JPEG || format == SWT.IMAGE_BMP) { writeJPGorBMP(img, saveFilePath, format); } else if (format == SWT.IMAGE_PNG || format == SWT.IMAGE_GIF) { writePNGorGIF(img, saveFilePath, formatName); } }
Example 4
Source File: AbstractGraphicalContentProvider.java From eclipsegraphviz with Eclipse Public License 1.0 | 5 votes |
private int getSWTFileFormat(GraphicFileFormat fileFormat) { switch (fileFormat) { case BITMAP: return SWT.IMAGE_BMP; case GIF: return SWT.IMAGE_GIF; case JPEG: return SWT.IMAGE_JPEG; case TIFF: return SWT.IMAGE_TIFF; case PNG: default: return SWT.IMAGE_PNG; } }
Example 5
Source File: ExportToImageManager.java From ermaster-b with Apache License 2.0 | 5 votes |
public void doProcess() throws IOException, InterruptedException { if (format == SWT.IMAGE_JPEG || format == SWT.IMAGE_BMP) { writeJPGorBMP(img, saveFilePath, format); } else if (format == SWT.IMAGE_PNG || format == SWT.IMAGE_GIF) { writePNGorGIF(img, saveFilePath, formatName); } }
Example 6
Source File: AbstractVTestCase.java From nebula with Eclipse Public License 2.0 | 4 votes |
private void capture(Rectangle bounds, String suffix) { GC gc = new GC(display); Image image = new Image(display, bounds); gc.copyArea(image, bounds.x, bounds.y); gc.dispose(); ImageData[] da = new ImageData[] { image.getImageData() }; image.dispose(); ImageLoader il = new ImageLoader(); il.data = da; StringBuilder sb = new StringBuilder(); if (capturePath != null && capturePath.length() > 0) { sb.append(capturePath); } else { sb.append(System.getProperty("user.home")); } File path = new File(sb.toString()); if (!path.exists()) { path.mkdirs(); } sb.append(File.separator); sb.append(getName()); if (suffix != null && suffix.length() > 0) { sb.append("-").append(suffix); } switch (captureFormat) { case SWT.IMAGE_BMP: sb.append(".bmp"); break; case SWT.IMAGE_GIF: sb.append(".gif"); break; case SWT.IMAGE_ICO: sb.append(".ico"); break; case SWT.IMAGE_JPEG: sb.append(".jpg"); break; case SWT.IMAGE_PNG: sb.append(".png"); break; case SWT.IMAGE_TIFF: sb.append(".tiff"); break; default: captureFormat = SWT.IMAGE_PNG; sb.append(".png"); break; } il.save(sb.toString(), captureFormat); }