本站首页    管理页面    写新日志    退出


«November 2025»
1
2345678
9101112131415
16171819202122
23242526272829
30


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7662766
建立时间:2006年5月29日




[Java Open Source]发布GIF4J破解版
软件技术

lhwork 发表于 2006/7/17 10:57:49

2年前,我提供了一个GIF4J的可用版,GIF4J是一套针对gif操作的Java类库。周末无聊,在Timiil Cracker的悉心指导下,我连续破解了JCAPI和Gif4J。 import  com.gif4j. * ; import  java.awt. * ; import  java.awt.image.BufferedImage; import  java.io.File; import  java.io.IOException; public   class  GifImageWatermarkExample {     //  Usage: java GifImageWatermarkExample [PathToGifImageToWatermark] (please be sure that the gif4j jar is in your CLASSPATH)     //  By default the gif4j_logotype.gif as an example gif image is used      public   static   void  main(String[] args) {        File gifImageFileToWatermark  =   null ;         if  (args.length  ==   0 ) {            gifImageFileToWatermark  =   new  File( " test.gif " );        }  else             gifImageFileToWatermark  =   new  File(args[ 0 ]);         //  load and decode gif image         GifImage gifImage  =   null ;         try  {            gifImage  =  GifDecoder.decode(gifImageFileToWatermark);        }  catch  (IOException e) {            e.printStackTrace();            System.exit( 1 );        }         //  change out directory if it is necessary         File outputDir  =   new  File( " . "   +  File.separator  +   " result " );         if  ( ! outputDir.exists())            outputDir.mkdirs();         //  create watermark image using TextPainter         TextPainter painter  =   new  TextPainter( new  Font( " Verdana " , Font.BOLD,  10 ));        painter.setOutlinePaint(Color.WHITE);        BufferedImage watermarkImage  =  painter.renderString( " david.turing " ,  true );         //  create watermark         Watermark watermark  =   new  Watermark(watermarkImage, Watermark.LAYOUT_TOP_LEFT,  0.2f );         //  apply watermark         GifImage topLeftWatermarked  =  watermark.apply(gifImage,  true );         //  apply watermark smoothly         GifImage topLeftWatermarked_smoothly  =  watermark.apply(gifImage,  true );         //  change the watermark alignment         watermark.setLayoutConstraint(Watermark.LAYOUT_MIDDLE_CENTER);         //  apply watermark         GifImage middleCenterWatermarked  =  watermark.apply(gifImage,  false );         //  apply watermark smoothly         GifImage middleCenterWatermarked_smoothly  =  watermark.apply(gifImage,  true );         //  change the watermark alignment         watermark.setLayoutConstraint(Watermark.LAYOUT_BOTTOM_RIGHT);         //  apply watermark         GifImage bottomRightWatermarked  =  watermark.apply(gifImage,  false );         //  apply watermark smoothly         GifImage bottomRightWatermarked_smoothly  =  watermark.apply(gifImage,  true );         //  change the watermark alignment         watermark.setLayoutConstraint(Watermark.LAYOUT_COVER_CONSECUTIVELY);         //  change the watermark transparency         watermark.setTransparency( 0.20f );         //  apply watermark         GifImage coverConsWatermarked  =  watermark.apply(gifImage,  false );         //  apply watermark smoothly         GifImage coverConsWatermarked_smoothly  =  watermark.apply(gifImage,  true );         //  Save the results          try  {            GifEncoder.encode(topLeftWatermarked, new  File(outputDir, " topLeftWatermarked.gif " ));            GifEncoder.encode(topLeftWatermarked_smoothly, new  File(outputDir, " topLeftWatermarked_smooth.gif " ));            GifEncoder.encode(middleCenterWatermarked, new  File(outputDir, " middleCenterWatermarked.gif " ));            GifEncoder.encode(middleCenterWatermarked_smoothly, new  File(outputDir, " middleCenterWatermarked_smooth.gif " ));            GifEncoder.encode(bottomRightWatermarked, new  File(outputDir, " bottomRightWatermarked.gif " ));            GifEncoder.encode(bottomRightWatermarked_smoothly, new  File(outputDir, " bottomRightWatermarked_smooth.gif " ));            GifEncoder.encode(coverConsWatermarked, new  File(outputDir, " coverConsWatermarked.gif " ));            GifEncoder.encode(coverConsWatermarked_smoothly, new  File(outputDir, " coverConsWatermarked_smooth.gif " ));        }  catch  (IOException e) {            e.printStackTrace();        }    }} 下面是运行的结果:500)this.width=500'>500)this.width=500'>500)this.width=500'>500)this.width=500'>破解的包放在我的UserGroup下载:http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=29304&threadID=36395&messageID=214504


阅读全文(2096) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 1.064 second(s), page refreshed 144798437 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号