日韩精品中文字幕一区二区-日韩精品中文字幕一区-日韩精品中文字幕视频-日韩精品在线一区二区三区-第一页在线-第一福利视频

東坡下載:內容最豐富最安全的下載站!

幫助|文件類型庫|最新更新|下載分類|排行榜

編程相關破解相關編程工具反編譯安裝制作程序源碼軟件補丁數據庫Visual Studiovc++visualbasicdreamweaver

首頁編程開發程序源碼 → Java的Flash類庫(JSwiff) 8.0 官網最新版

Java的Flash類庫(JSwiff)

Java的Flash類庫(JSwiff)8.0 官網最新版

  • 大小:2.4M
  • 語言:中文
  • 平臺:WinAll
  • 更新:2015-05-27 17:17
  • 等級:
  • 類型:程序源碼
  • 網站:http://m.nlktpj.cn
  • 授權:免費軟件
  • 廠商:
  • 產地:國產軟件
好用好玩 50%(0)
坑爹 坑爹 50%(0)
軟件介紹軟件截圖相關軟件軟件教程網友評論下載地址

JSwiff 是一款開源的,基于Java的操作Macromedia Flash file 的框架,可以創建,和操作Flash文件。JSwiff 還提供了JSwiff Investigator,可以直接分析現有的SWF文件的結構,得到Tag層次的信息..

其他不多說,喜歡的人自己可以到該網站去了解,下面我就拿出一個例子來。呵~~從官方那邊修改過來的,我就不多做解釋了(呵~人家說得很明白啦,雖然有點煩瑣)

Java的Flash類庫(JSwiff)用法

import java.io.FileOutputStream;
import java.io.IOException;
import com.jswiff.SWFWriter;
import com.jswiff.SWFDocument;
import com.jswiff.swfrecords.Rect;
import com.jswiff.swfrecords.RGBA;
import com.jswiff.swfrecords.Matrix;
import com.jswiff.swfrecords.tags.DefineFont2;
import com.jswiff.swfrecords.tags.DefineEditText;
import com.jswiff.swfrecords.tags.PlaceObject2;
import com.jswiff.swfrecords.tags.ShowFrame;
public class CreateSwf 
{
public static void main(String[] args) 
{
  String fileName = "test.swf";
  SWFDocument document = new SWFDocument();
  // first we define a font for the text
  // get a character ID for the font
  int fontId = document.getNewCharacterId();
  // use a standard font (e.g. Arial), we don't want to define shapes for each glyph
  DefineFont2 defineFont2 = new DefineFont2(fontId, "Arial", null, null);
  document.addTag(defineFont2);
  // get a character ID for our text
  int textId = document.getNewCharacterId();
  // dynamic text is a good way to go, we use DefineEditText for this
  // we don't care about bounds and variables
  DefineEditText defineEditText = new DefineEditText(
   textId, new Rect(0, 0, 0, 0), null);
  // we have set the text bounds to a zero rectangle;
  // to see the whole text, we set the autosize flag
  defineEditText.setAutoSize(true);
  // assign the font defined above to the text, set font size to 24 px (in twips!)
  defineEditText.setFont(fontId, 20 * 24);
  // set text color to red
  defineEditText.setTextColor(new RGBA(255, 0, 0, 255));
  // don't let viewers mess around with our text
  defineEditText.setReadOnly(true);
  // finally set the text
  defineEditText.setInitialText("棄天笑(soda) test!");
  document.addTag(defineEditText);
  // place our text at depth 1
  PlaceObject2 placeObject2 = new PlaceObject2(1);
  placeObject2.setCharacterId(textId);
  // place text at position (45; 10) (in twips!)
  placeObject2.setMatrix(new Matrix(20 * 45, 20 * 10));
  document.addTag(placeObject2); // place text
  document.addTag(new ShowFrame()); // show frame
  try 
  {
   writeDocument(document, fileName);
  } 
  catch (IOException e) 
  {
   System.out.println("An error occured while writing " + fileName + ":");
   e.printStackTrace();
  }
}
private static void writeDocument(SWFDocument document, String fileName)
  throws IOException
{
  SWFWriter writer = new SWFWriter(document, new FileOutputStream(fileName));
  writer.write();
}
}


PC官方
安卓官方手機版
IOS官方手機版

Java的Flash類庫(JSwiff)截圖

下載地址

Java的Flash類庫(JSwiff) 8.0 官網最新版

熱門評論
最新評論
昵稱:
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
字數: 0/500 (您的評論需要經過審核才能顯示)

編輯推薦

報錯

請簡要描述您遇到的錯誤,我們將盡快予以修正。

轉帖到論壇
輪壇轉帖HTML方式

輪壇轉帖UBB方式

主站蜘蛛池模板: 情动电影| 刘浩存个人简介资料| 诈欺游戏电影| 文熙俊| 4480午夜| 消防给水及消火栓技术规范gb50974-2014| 妈妈1| 七年级下册语文第八课生字拼音| 欧布奥特曼普通版普通话中文版| 周翊然个人资料简介| 电影院电影| 50000蛋币兑换码2025年有效| 皮囊之下| 未删减版电视剧在线观看| 澳亚卫视| 向团组织靠拢的打算| 李洋演员| 杀破狼3国语在线观看| 但愿人长久| 成都影院大全| 地铁电影| 黄色网址在线免费播放| 头像女伤感| 妙探出差3| 念念相忘电影免费观看| 电影后妈| 拔萝卜电视剧高清免费观看全集 | 龙咁威| 儿子娶妈妈剧情介绍| 桥梁工程施工方案| 在线黄色片| 冲天火| 理发店3| 林忆莲唱哭李宗盛现场| 下载抖音正版| 深流 电视剧| 神出鬼没电影| 2025年最旺财聚财壁纸| 刘峥| 啊摇篮电影| 天鹅套索 电视剧|