`
文章列表

PNG转GIF

    博客分类:
  • Java
 
PNG转GIF,并保留透明部分 public static void convertPNG(File file, File outfile){ List<BufferedImage> images = new ArrayList<BufferedImage>(); try{ Iterator<ImageReader> imageReaders = ImageIO.getImageReadersByFormatName("png"); ImageReader imageReader = (Ima ...
public class FindOdd { public static void main(String args[]){ for(int i=0;i<10000;i++){ if(!test()){ System.out.println("Error Occurs: "+i); break; } } System.out.println("Well Job! All Pass."); } public static boolean test(){ int num ...
(P∧R)∨(Q∧R)∨(P∧Q∧R)

爱是恒久忍耐

爱是恒久忍耐 Though I speak with the tongues of men and of angels, but have not love, I have become sounding brass or a clangin cymbal. 我若能说万人的方言,并天使的话语,却没有爱,我就成了鸣的锣,响的cymbal. And though I have the gift of prophecy, and the understanding all my misteries and all knowledge, and though I have all faith, ...
云理论是实现概念的定性值与数字的定量值之间自然转换的有力工具。   本文在云理论的基础上,提出了实现概念计算(也叫简化计算)的云计算方法。概述了云模型与不确定推理;给出了计算的逻辑描述,将计算过程抽象 ...
@函数名称:   strdup 函数原型:   char *strdup(const char *s) 函数功能:   字符串拷贝,目的空间由该函数分配  函数返回:   指向拷贝后的字符串指针 参数说明:   src-待拷贝的源字符串 @函数名称:   strcpy 函数原型:   char* str ...

CRC32 查表法 java

public static int Calc(byte[] content){ int crc32 = 0xffffffff; for(int i=0;i<content.length;i++){ crc32 = (crc32<<8)^TABLE[(reverse(content[i],8)^(crc32>>24))&0xFF]; } return reverse(crc32^0xffffffff,32); } private final static int TABLE[]={ 0x0 ...
这两天编写从windows CMD调用Make编译的bat脚本。结果运行时总是报错: process_begin: CreateProcess(bla,bla,bla.....) failed. make (e=234): More data is available. ... 但是直接运行Make是不会有这个错误。 网上查找很久都没有找到解决方案。 最后一行一行注释别的脚本,终于找到问题所在了。 原来Windows CMD中set的变量空间是有限的(网上有说是11K)。也就是bat脚本中不能有太多的太长变量。否则可能会运行失败。 如: set path=%path%;%pa ...

J2ME M3G 编程

    博客分类:
  • Java
//顶点集合 VertexArray vertexArray = new VertexArray(Util.vertices.length / 3, 3, 2); vertexArray.set(0, Util.vertices.length / 3, Util.vertices); //顶点法线集合 //法线为顶点所在平面的垂直方向,有正负之分 VertexArray normalArray = new VertexArray(Util.normals.length / 3, 3, 1); normalArray.set(0, Util.normals.leng ...
File Format for Mobile 3D Graphics API Abstract This specification defines a 3D Graphics File Format that complements the Mobile 3D Graphics API (M3G). The file format is provided as a compact and standardised way of populating a scene graph. Contents 1 Important Notes 2 MIME Type and File Extensio ...

svg标签

    博客分类:
  • Java
Property Trait Getter [possible return value(s)] Trait Setter [allowed value(s)] Default Values <svg>, <rect>, <circle>, <ellipse>, <line>, <path>, <g>, <image>, <text>, <a>, and <use> color getRGBColorTrait [SVGRGBColor] setTra ...
    一个 ZIP 文件由三个部分组成:                 压缩源文件数据区+压缩源文件目录区+压缩源文件目录结束标志     1、压缩源文件数据区     在这个数据区中每一个压缩的源文件/目录都是一条记录,记录的格式如下:              [文件头+ 文件数据 + 数据描述符]        a、文件头结构          组成                     长度       文件头标记                  4 bytes  (0x04034b50)       解压文件所需 pkware 版本    2 bytes       全 ...

char类型与Unicode

    博客分类:
  • Java
char tempchar = '我'; System.out.println(Integer.toHexString((int)tempchar)); tempchar = 'i'; System.out.println(Integer.toHexString((int)tempchar)); String temp = "我i"; byte[] bb = temp.getBytes("unicode"); for(byte b:bb){ System.out.println(Integ ...
元旦假期对一个游戏散失兴趣之后就一直看片。 感觉最近出的片子都有一个共同的特定,内容严重匮乏。多的是特技啊,搞笑啊什么的,感觉都没有内涵。 有人说电影就是提供观众娱乐,放松的。观众被搞笑搞笑了,被特技赞叹了,在沉重的生活压力下放松了一下,电影就成功了。 我觉得这种想法是一个电影人士没有追求的想法。 有没有可能电影能改变人们的生活态度,从而彻底改变生活习惯,进而彻底远离沉重压力的生活呢。 大家都觉得现在人的这么沉重压力的生活都是必须的吗? 所以我觉得蜗居这部电视不错。 沉重压力的生活哪儿来的,还不是自找的。
火炬之光的附魔相信玩火炬之光游戏的玩家都喜欢,如果拿到暗金装备,找到免费的附魔点,大家一定都不换放过,毕竟城里的附魔点对越好的装备收费越多。 可是大家有没有想过用白色物品附魔会怎么样呢? 下面就是我在游戏中发现的设计缺陷,有了这个之后就让我立即对该游戏的好奇度,忠诚度大打折扣,现在都不想玩了。 最普通的白色物品,起步价300,附魔10次后的价格可能才上千,而且附魔100次有的也上不了万,可是附魔100次,那物品的属性估计游戏中所有现有物品都不可能望其项背,其属性可以说是变态,如果找到全身的最普通的白色装备,全部来个100次,那人物可以说玩什么难度的都不需要红蓝瓶了。而且总价估计也就二三十万。 有 ...
Global site tag (gtag.js) - Google Analytics