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

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

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

    嘟嘟

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      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 閱讀(2175) 評論(0)  編輯  收藏 所屬分類: RCP&SWT&JFACE
    主站蜘蛛池模板: 在线观看日本亚洲一区| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 国产乱子伦片免费观看中字| 亚洲色欲久久久综合网| 亚洲AV无码一区二区三区在线| 国产亚洲精品第一综合| 人妻无码久久一区二区三区免费| 国产免费小视频在线观看| 亚洲精品中文字幕| 777爽死你无码免费看一二区| 四虎影视永久免费视频观看| 亚洲av中文无码字幕色不卡| 2022久久国产精品免费热麻豆| 亚洲精品视频久久久| 亚洲精品国产国语| 日韩精品无码免费一区二区三区 | 伊人免费在线观看| 国产91在线免费| 永久免费观看黄网站| 免费看少妇作爱视频| 亚洲国产美女视频| 四虎影视成人永久免费观看视频| 四虎精品亚洲一区二区三区| 国产精品亚洲自在线播放页码| 99re在线这里只有精品免费| 亚洲国产精品成人精品小说| 欧洲精品免费一区二区三区| 猫咪免费观看人成网站在线| 男女啪啪永久免费观看网站| 免费夜色污私人影院网站| 国产成人在线免费观看| 亚洲熟妇无码一区二区三区| 免费一级毛片不卡在线播放| 亚洲成a人片在线不卡一二三区| 无码国产亚洲日韩国精品视频一区二区三区 | 看一级毛片免费观看视频| 亚洲色精品88色婷婷七月丁香| 99久热只有精品视频免费观看17| 亚洲熟妇无码一区二区三区导航| 亚洲毛片网址在线观看中文字幕 | 狼友av永久网站免费观看|