国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
獲得Image對象的幾個(gè)方法
這只是我誰時(shí)遇到誰時(shí)記錄的,以后有新的內(nèi)容會(huì)誰時(shí)更新


1 .
    Image.win32_new (Display.getDefault(), SWT.ICON, 65545)
Image org.eclipse.swt.graphics.Image.win32_new(Device device, int type, inthandle)

Invokes platform specific functionality to allocate a new image.

IMPORTANT: This method is not part of the public API forImage. It is marked public only so that it can be shared within thepackages provided by SWT. It is not available on all platforms, and should neverbe called from application code.

參數(shù):
device the device on which to allocate the color
type the type of the image (SWT.BITMAP orSWT.ICON)
handle the OS handle for the image
返回:
a new image object containing the specified device, type andhandle
2 .
    Display.getDefault().getSystemImage(SWT.ICON_WORKING)
Image org.eclipse.swt.widgets.Display.getSystemImage(int id)

Returns the matching standard platform image for the given constant, whichshould be one of the icon constants specified in class SWT. Thisimage should not be free‘d because it was allocated by the system, not theapplication. A value of null will be returned either if thesupplied constant is not an swt icon constant or if the platform does not definean image that corresponds to the constant.

參數(shù):
id the swt icon constant
返回:
the corresponding image or null
拋出:
SWTException
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
另請參閱:
SWT.ICON_ERROR
SWT.ICON_INFORMATION
SWT.ICON_QUESTION
SWT.ICON_WARNING
SWT.ICON_WORKING
@since
3.0
3。
   AbstractUIPlugin.imageDescriptorFromPlugin(Application.ID,"icons/types.gif")
ImageDescriptor org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(String pluginId, String imageFilePath)

Creates and returns a new image descriptor for an image file located within the specified plug-in.

This is a convenience method that simply locates the image file in within the plug-in (no image registries are involved). The path is relative to the root of the plug-in, and takes into account files coming from plug-in fragments. The path may include $arg$ elements. However, the path must not have a leading "." or path separator. Clients should use a path like "icons/mysample.gif" rather than "./icons/mysample.gif" or "/icons/mysample.gif".

參數(shù):
pluginId the id of the plug-in containing the image file; null is returned if the plug-in does not exist
imageFilePath the relative path of the image file, relative to the root of the plug-in; the path must be legal
返回:
an image descriptor, or null if no image could be found
注 :Application.ID:插件ID

4。
static final Image
    UNCHECKED = createImage("images/checkboxenabledoff.gif"), //$NON-NLS-1$
    CHECKED = createImage("images/checkboxenabledon.gif"); //$NON-NLS-1$

private static Image createImage(String name) {
    InputStream stream = CheckBox.class.getResourceAsStream(name);
    Image image = new Image(null, stream);
    try {
        stream.close();
    } catch (IOException ioe) {
    }
    return image;
}

5。
        ImageRegistry reg = JFaceResources.getImageRegistry();
        reg.put(CELL_EDITOR_IMG_DOTS_BUTTON, ImageDescriptor.createFromFile(
                DialogCellEditor.class, "images/dots_button.gif"));

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
在Tomcat
SWT Designer 安裝與破解
CSS背景圖片路徑設(shè)置
Eclipse SWT應(yīng)用程序項(xiàng)目的打包與部署
采用SWT實(shí)現(xiàn)系統(tǒng)文件夾的樹形結(jié)構(gòu)顯示
JAVA:SWT插件
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服