当前位置: 技术问答>java相关
请问如何从"byte[]"生成一个Image对象?JDK版本1.2!
来源: 互联网 发布时间:2015-03-02
本文导语: | import java.awt.*; import java.awt.image.*; public class jwmem extends java.applet.Applet { Image i; int width = 200; int height = 200; public void init() { int[] pixels = new int[width * height]; i...
|
import java.awt.*;
import java.awt.image.*;
public class jwmem extends java.applet.Applet
{
Image i;
int width = 200;
int height = 200;
public void init()
{
int[] pixels = new int[width * height];
int c;
double radianConversion = Math.PI / 180.0;
for(int index = 0, y = 0; y
import java.awt.image.*;
public class jwmem extends java.applet.Applet
{
Image i;
int width = 200;
int height = 200;
public void init()
{
int[] pixels = new int[width * height];
int c;
double radianConversion = Math.PI / 180.0;
for(int index = 0, y = 0; y