LaoCooon
LaoCooon
关注数: 137
粉丝数: 565
发帖数: 12,384
关注贴吧数: 207
回收家里不用的电子产品或其他你感觉我能用的~! 有不用的就发出来,我看看,我要收收收。
季节性过敏性鼻炎,我今天算好了,不知道明年会不会再犯 一入秋,我就每天健身房,运动,运动,运动。 虽然半夜起来鼻子还会偶尔不透气,清点清水,但没之前严重了,我相信一直坚持运行下去,会越来越好。 这是发出的信号,让我坚持运行。 有类似我情况的,试一下吧。
故事,一个与游戏相关的事
游戏成就了我的前半生
有没有想在家打游戏币发财的。有这想法的我有一套路子 。 ...
直播第一次做螃蟹吃。
秋天,虽不能做第一个吃螃蟹的人,但可以吃最好的螃蟹
烟台大苹果,有营养
Java真爱,这个时间在线的。
这个时间没休息的才是真爱吧?
甩DFO点卷
甩DFO点卷只能充信箱方式的,Steam方式的不可以。 甩DFO点卷只能充信箱方式的,Steam方式的不可以。
因为一个游戏,我暂时告别了java 因为一个游戏,我暂时告别了java
换项目。 有的M
一杯茶,一本书;品人生百态,读警世贤文。 一杯茶,一本书;品人生百态,读警世贤文。
买了一本Java语言规范,价格不便宜。129元。 有学过这本书的你,怎么看。 讲的如何。
这个时间在java吧的是真爱吧,最近买本java语言规范 有看过的吗,感觉如何。
没结婚的想结婚,结婚的想离婚,这个世界怎么了。 最好的东西是得不到的东西。 最不珍惜的东西是已经有了的东西。
有谈那个的吗?我有好方法。
70岁的宝宝打乒乓球,什么感脚
运动起来
动起来
浓浓尊师意 款款爱生情 浓浓尊师意 款款爱生情 庆贺9月10日教师节 我2元店的货,免费送一件家用物品。 夏末初秋9月10号教师节即将来临,为答谢战斗在教育事业一线的全体教师们,我店特推出感恩回馈活动! 1. 教师凭本人有效教师证件到店登记,2017年9月可免费领取物品一件!登记有效时间:2017年9月8日-2017年9月30。 以上内容,有认识教师的可以传达一下。
浓浓尊师意 款款爱生情 浓浓尊师意 款款爱生情 庆贺9月10日教师节 我健身免费对老师开放啦! 夏末初秋9月10号教师节即将来临,为答谢战斗在教育事业一线的全体教师们,让每一位教师都拥有一个健康的身体,我健身俱乐部特推出感恩回馈活动! 1. 教师凭本人有效教师证件到我健身房前台登记,2017年9月可免费健身!登记有效时间:2017年9月8日-2017年9月10。 2. 推出教师节感恩卡,一年送半年! 3. 推出学生年卡 百人团购价! 以上内容,有认识教师的可以传达一下。
just keep 的招远吧友何在~! 我是代眼镜的那个人。
健面
这个点还在的,才是真爱。
这个时间没睡的都是,java真爱。举手。 这个时间没睡的都是,java真爱。举手。
谁有闲置书籍,可以回收,。发图噢。
哪里有读书的氛围,我们大招远有没有哈。 哪里有读书的氛围,我们大招远有没有哈。
想搞个招远编程爱好者俱乐部,暂时没思路,先成立个群吧。 想搞个招远编程爱好者俱乐部,暂时没思路,先成立个群吧。
招远哪有卖书籍的,【计算机类,中国传统文化类的,企业管理类】 招远哪有卖书籍的,【计算机类,中国传统文化类的,企业管理类 心理学, 成功学 ...】
大家枣
大家枣
维护了吗? 我是小白,昨天充了100买了道具。
如何卖物品和装备 如何卖物品和装备
好视频就要从分享开始。 需要的就来吧。
招远的兄弟们,有喜欢编程的吗?平日都用什么工具, 开发过什么项目呢。求交流。
这个点没睡的,都是java真爱。
回到,三楼就发ID了。
盯代码太多,应当换个图,换换心情了。
先发个养眼的图。
健身了吗
这个时间没睡觉的吧友才是真爱。 真爱.Python.
这个点还在Java吧的都是真爱。 真.Java大神
搞海外Game业务最近几年存了,不到,200K,不知道理财,请指点。 如题。
来一碗鸡汤
卖个自行车。 有要的联系。 变速的。
帮助朋友宣传以下几个事: 如题:
18周岁的,暂时没什么职业,有电脑能上网的注意。 提供一个就业的机会,现在是线上线下一起搞,有兴趣的可以。留言。
能没有Vb打算转学其他工具的。如java,python c c++.... 能没有Vb打算转学其他工具的。如java,python c c++....
最近在看这几本书。
不多说直接上图。
这个点还在的,算是java真爱了。 我是, 真.java 真爱。
招远哪能买到安利产品。 蛋白粉。
好久没来了,人还多吗? 之前叫, 奇幻仙侠。
机会,不废话。 进qun前报一下楼号。44648008
干货,必须的。 进,qun44648008,报楼号。
读万卷书不如行万里路,行万里路不如越人无数,越人无数不如名师 读万卷书不如行万里路,行万里路不如越人无数,越人无数不如名师指路
ImageProcessor.java // Initial source-code for ImageProcessor.java // Given as part of Assignment #6, CSC 110, UVic, Fall 2014// Originally created by Mike Zastre, last edited by Melanie Tory, Nov. 2014import java.awt.Color;import java.awt.image.BufferedImage;import java.io.*;import javax.imageio.ImageIO;public class ImageProcessor { // THIS METHOD MAY BE CALLED, BUT MUST NOT BE MODIFIED! // This method reads an image file. // expects one parameter: a filename of an image file to be read // returns a 2D array of ints representing grayscale values in the input image public static int[][] readGrayscaleImage(String filename) { int [][] result = null; //create the array try { File imageFile = new File(filename); //create the file BufferedImage image = ImageIO.read(imageFile); int height = image.getHeight(); int width = image.getWidth(); result = new int[height][width]; //read each pixel value for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { int rgb = image.getRGB(x, y); result[y][x] = rgb & 0xff; } } } catch (IOException ioe) { System.err.println("Problems reading file named " + filename); System.exit(-1); } return result; //once we're done filling it, return the new array } // THIS METHOD MAY BE CALLED, BUT MUST NOT BE MODIFIED! // This method creates an output image based on an array of ints and writes it to a file. // expects two parameters: a filename for the image file that will be created // and a 2D array of ints that will be converted into the image public static void writeGrayscaleImage(String filename, int[][] array) { int width = array[0].length; int height = array.length; try { BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); //create the image //set all its pixel values based on values in the input array for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { int rgb = array[y][x]; rgb |= rgb << 8; rgb |= rgb << 16; image.setRGB(x, y, rgb); } } //write the image to a file File imageFile = new File(filename); ImageIO.write(image, "jpg", imageFile); } catch (IOException ioe) { System.err.println("Problems writing file named " + filename); System.exit(-1); } } public static void ascii(String filename,int array[][]) throws FileNotFoundException{ int height = array.length; int width = array[0].length; PrintStream output=new PrintStream(new File(filename)); output.println("设置成不自动换行,字体大小设置为1或2"); for(int y=0;y<height;y++){ for(int x=0;x<width;x++) { if (array[y][x]>=0 && array[y][x]<=25) output.print("M"); if (array[y][x]>=26 && array[y][x]<=50) output.print("$"); if (array[y][x]>=51 && array[y][x]<=76) output.print("o"); if (array[y][x]>=77 && array[y][x]<=102) output.print("|"); if (array[y][x]>=103 && array[y][x]<=127) output.print("*"); if (array[y][x]>=128 & array[y][x]<=152) output.print(":"); if (array[y][x]>=153 && array[y][x]<=178) output.print("="); if (array[y][x]>=179 && array[y][x]<=204) output.print("\\"); if (array[y][x]>=205 && array[y][x]<=230) output.print("."); if (array[y][x]>=231 & array[y][x]<=255) output.print(" "); if (x==width-1) output.println(""); } } } public static void reflectV(int array[][]) { int height = array.length; int width = array[0].length; int rgb; for(int y=0;y<height;y++){ for(int x=0;x<(width/2);x++) { rgb=array[y][x]; array[y][x]=array[y][width-x-1]; array[y][width-x-1]=rgb; } } } public static void reflectH(int array[][]) { int height = array.length; int width = array[0].length; int rgb; for(int y=0;y<height/2;y++){ for(int x=0;x<(width);x++) { rgb=array[y][x]; array[y][x]=array[height-y-1][x]; array[height-y-1][x]=rgb; } } } public static int[][] tile(int array[][],int hz,int vt) { int height = array.length; int width = array[0].length; int [][] result = null; height*=vt; width*=hz; result = new int[height][width]; for(int y=0;y<height;y++){ for(int x=0;x<width;x++) { result[y][x]=array[y%array.length][x%array[0].length]; } } return result; } public static void adjustBrightness(int array[][],int amount) { int height = array.length; int width = array[0].length; int rgb; for(int y=0;y<height;y++){ for(int x=0;x<(width);x++) { rgb=array[y][x]+amount; if(rgb<0) rgb=0; if(rgb>255) rgb=255; array[y][x]=rgb; } } } public static void main(String[] args) throws FileNotFoundException{ int [][] result = null; int [][] result2 =null; if(args[0].equals("-ascii")){ result=readGrayscaleImage(args[1]); ascii(args[2],result); } if(args[0].equals("-reflectV")){ result=readGrayscaleImage(args[1]); reflectV(result); writeGrayscaleImage(args[2],result); } if(args[0].equals("-reflectH")){ result=readGrayscaleImage(args[1]); reflectH(result); writeGrayscaleImage(args[2],result); } if(args[0].equals("-tile")){ result=readGrayscaleImage(args[3]); result2= tile(result,Integer.parseInt(args[1]),Integer.parseInt(args[2])); writeGrayscaleImage(args[4],result2); } if(args[0].equals("-adjustBrightness")){ result=readGrayscaleImage(args[2]); adjustBrightness(result,Integer.parseInt(args[1])); writeGrayscaleImage(args[3],result); } }}
首页
1
2
3
4
下一页