资源简介
Java实现远程桌面连接的properjavardp源码工程,可直接运行。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
代码片段和文件信息
/* Bitmap.java
* Component: ProperJavaRDP
*
* Revision: $Revision: 1.7 $
* Author: $Author: telliott $
* Date: $Date: 2005/09/27 14:15:39 $
*
* Copyright (c) 2005 Propero Limited
*
* Purpose: Provide a class for storage of Bitmap images along with
* static methods for decompression and conversion of bitmaps.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307
* USA
*
* (See gpl.txt for details of the GNU General Public License.)
*
*/
package net.propero.rdp;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.IndexColorModel;
import org.apache.log4j.Logger;
public class Bitmap {
public int usage;
private int[] highdata = null;
private int width = 0;
private int height = 0;
private int x = 0;
private int y = 0;
protected static Logger logger = Logger.getLogger(Rdp.class);
public static int convertTo24(int colour){
if(Options.server_bpp == 15) return convert15to24(colour);
if(Options.server_bpp == 16) return convert16to24(colour);
return colour;
}
public static int convert15to24(int colour16){
int r24 = (colour16 >> 7) & 0xF8;
int g24 = (colour16 >> 2) & 0xF8;
int b24 = (colour16 << 3) & 0xFF;
r24 |= r24 >> 5;
g24 |= g24 >> 5;
b24 |= b24 >> 5;
return (r24 << 16) | (g24 << 8) | b24;
}
public static int convert16to24(int colour16){
int r24 = (colour16 >> 8) & 0xF8;
int g24 = (colour16 >> 3) & 0xFC;
int b24 = (colour16 << 3) & 0xFF;
r24 |= r24 >> 5;
g24 |= g24 >> 6;
b24 |= b24 >> 5;
return (r24 << 16) | (g24 << 8) | b24;
}
private static int bmpCount = 0;
/**
* Read integer of a specified byte-length from byte array
* @param data Array to read from
* @param offset Offset in array to read from
* @param Bpp Number of bytes to read
* @return
*/
static int cvalx(byte[] data int offset int Bpp) {
int rv = 0;
if(Options.server_bpp == 15){
int lower = data[offset] & 0xFF;
int full = (data[offset + 1] & 0xFF) << 8 | lower;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-08-31 14:51 JavaRDP\
文件 556 2017-08-31 14:10 JavaRDP\.classpath
文件 585 2017-08-31 14:08 JavaRDP\.project
目录 0 2017-08-31 14:08 JavaRDP\.settings\
文件 629 2017-08-31 14:08 JavaRDP\.settings\org.eclipse.jdt.core.prefs
目录 0 2017-08-31 14:54 JavaRDP\bin\
目录 0 2017-08-31 14:51 JavaRDP\bin\net\
目录 0 2017-08-31 14:51 JavaRDP\bin\net\propero\
目录 0 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\
目录 0 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ap
文件 1153 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ap
文件 5282 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ap
文件 6242 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ap
文件 2051 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ap
文件 20692 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Bitmap.class
文件 61854 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Bitmap.java.bak
文件 5767 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Cache.class
文件 9793 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Cache.java.bak
文件 894 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\CELLHEADER.class
文件 742 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Common.class
文件 727 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Common.java.bak
文件 1350 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\CommunicationMonitor.class
文件 1406 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\CommunicationMonitor.java.bak
文件 381 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ConnectionException.class
文件 386 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\ConnectionException.java.bak
文件 619 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Constants.class
文件 717 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\Constants.java.bak
目录 0 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\crypto\
文件 2066 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\crypto\BlockMessageDigest.class
文件 4411 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\crypto\BlockMessageDigest.java.bak
文件 455 2017-08-31 14:51 JavaRDP\bin\net\propero\rdp\crypto\CryptoException.class
............此处省略424个文件信息
评论
共有 条评论