<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    嘟嘟

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      26 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks
    Taking a look at SWT Images:網上教程
    org.eclipse.swt.graphics 包情況:
    Interfaces 
    Drawable
    ImageLoaderListener
    Classes 
    Color
    Cursor
    Device
    DeviceData
    Font
    FontData
    FontMetrics
    GC
    GCData
    Image
    ImageData
    ImageLoader
    ImageLoaderEvent
    PaletteData
    Point
    Rectangle
    Region
    RGB
    Images類使用介紹:
    There are two primary ways to use Images.
    1:直接調用
          Image i = new Image(device, "C:\\graphic.bmp");
          //device有2種設備,Display和Printer,寫null,默認使用當前的Display來做顯示設備。
    2:控制顏色分配
        ImageData data = new ImageData("C:\\graphic.bmp");
        RGB[] rgbs = data.getRGBs();
        // At this point, rgbs contains specifications of all
        // the colors contained within this image. You may
        // allocate as many of these colors as you wish by
        // using the Color constructor Color(RGB), then
        // create the image:
        Image i = new Image(device, data);

    相對路徑:
    Image i = new Image(device, "icons/graphic.bmp");   //項目根目錄下

    插件自帶圖像
    ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages():
    Image image = sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);

    ImageLoader類使用介紹:保存圖片
    ImageLoader imageLoader = new ImageLoader();
    imageLoader.data = new ImageData[] {imageData};                 
    //The reason the data field is an array of ImageData is to support
    //image file formats with more than one frame such as animated GIFs or interlaced JPEG files.

    imageLoader.save("C:/temp/Idea_PureWhite.jpg",SWT.IMAGE_JPEG);

    .......to be continue

    posted on 2007-06-17 14:56 fyp1210 閱讀(2168) 評論(0)  編輯  收藏 所屬分類: RCP&SWT&JFACE
    主站蜘蛛池模板: 国产亚洲精品第一综合| jizzjizz亚洲日本少妇| 国产免费av片在线无码免费看| 亚洲精品资源在线| 久久精品国产免费观看 | 黄页网站在线观看免费高清| 亚洲色图国产精品| 97性无码区免费| 伊人久久五月丁香综合中文亚洲| 成人奭片免费观看| 亚洲国产日韩a在线播放| 国产美女无遮挡免费网站| 美女黄网站人色视频免费| 亚洲第一福利网站在线观看| 久久久久久亚洲精品成人| 猫咪免费人成网站在线观看| 国产L精品国产亚洲区久久| 一个人看的www免费在线视频| 国产亚洲成人在线播放va| 久久综合九色综合97免费下载| 亚洲精品影院久久久久久| 噼里啪啦电影在线观看免费高清| 亚洲精品无播放器在线播放| mm1313亚洲精品无码又大又粗| 一区二区在线免费视频| 亚洲AV日韩精品久久久久| 中文字幕免费在线看线人动作大片| 亚洲精品国产成人片| 日本人的色道免费网站| 亚洲AV成人一区二区三区观看 | 亚洲综合日韩久久成人AV| 久久国产精品免费网站| 亚洲成av人片天堂网无码】| 国产亚洲成归v人片在线观看| 91精品免费在线观看| 黄网站色视频免费观看45分钟 | 麻豆成人久久精品二区三区免费| 亚洲国产亚洲片在线观看播放| 又粗又黄又猛又爽大片免费| 日韩精品免费视频| 久久亚洲精品高潮综合色a片|