码迷,mamicode.com
首页 >  
搜索关键字:bufferedimage    ( 308个结果
PDF转图片以及转html
嘿,笔者就是本着有意思的心态。其实实现的原理与ppt转html的一致。先转成图片,然后把图片呈现在html上。直接贴代码喽。packagecom.css.java.learning.massbag;importjava.awt.image.BufferedImage;importjava.io.File;importjava.io.FileOutputStream;importjava.util.
分类:Web程序   时间:2018-09-26 00:14:38    阅读次数:840
git动态验证码
效果图:代码:importjava.awt.AlphaComposite;importjava.awt.Color;importjava.awt.Font;importjava.awt.Graphics2D;importjava.awt.image.BufferedImage;importjava.io.IOException;importjava.io.OutputStream;publiccl
分类:其他好文   时间:2018-09-19 19:53:27    阅读次数:292
二维码
package com.avcon.util; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IO... ...
分类:其他好文   时间:2018-09-11 16:13:24    阅读次数:135
图片合成
合成两张大小一样的图片 //读取第一张图片 File fileOne = new File(startPath); BufferedImage ImageOne = ImageIO.read(fileOne); int width = ImageOne.getWidth();//图片宽度 int h ...
分类:其他好文   时间:2018-09-05 17:30:54    阅读次数:202
e667. 在给定图像中创建缓冲图像
An Image object cannot be converted to a BufferedImage object. The closest equivalent is to create a buffered image and then draw the image on the buf ...
分类:其他好文   时间:2018-09-03 00:06:25    阅读次数:206
e668. 在一组像素中创建缓冲图像
This example demonstrates how to convert a byte array of pixel values that are indices to a color table into a BufferedImage. In particular, the examp ...
分类:其他好文   时间:2018-09-03 00:06:17    阅读次数:176
e664. 在图像中获取子图像
// From an Image image = createImage(new FilteredImageSource(image.getSource(), new CropImageFilter(x, y, w, h))); // From a BufferedImage bufferedIma... ...
分类:其他好文   时间:2018-09-03 00:03:46    阅读次数:137
e671. 在缓冲图像中存取像素
// Get a pixel int rgb = bufferedImage.getRGB(x, y); // Get all the pixels int w = bufferedImage.getWidth(null); int h = bufferedImage.getHeight(null)... ...
分类:其他好文   时间:2018-09-03 00:03:16    阅读次数:181
e670. 缓冲图像转换为图像
// This method returns an Image object from a buffered image public static Image toImage(BufferedImage bufferedImage) { return Toolkit.getDefaultToolk... ...
分类:其他好文   时间:2018-09-02 23:56:40    阅读次数:184
e672. 缩放,剪取,移动,翻转缓冲图像
AffineTransform tx = new AffineTransform(); tx.scale(scalex, scaley); tx.shear(shiftx, shifty); tx.translate(x, y); tx.rotate(radians, bufferedImage.g... ...
分类:移动开发   时间:2018-09-02 23:43:28    阅读次数:201
308条   上一页 1 ... 3 4 5 6 7 ... 31 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!