MsRdpClient的版本是9,8,7,并且在提供的代码中,2。在StackOverflow上有很多其他帖子,这段代码应该将我连接到我的计算机(已启用RDP)并向我显示登录屏幕。
我为不包含更多信息而道歉,但我不知道为什么这不起作用。
public Bitmap mergeBitmaps(Bitmap myLogo, Bitmap bitmap){
Bitmap combined = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());
Canvas canvas = new Canvas(combined);
int canvasWidth = canvas.getWidth();
int canvasHeight = canvas.getHeight();
canvas.drawBitmap(bitmap, new Matrix(), null);
Bitmap resizeLogo = Bitmap.createScaledBitmap(myLogo, canvasWidth / 5, canvasHeight / 5, true);
int centreX = (canvasWidth - resizeLogo.getWidth()) /2;
int centreY = (canvasHeight - resizeLogo.getHeight()) / 2;
canvas.drawBitmap(resizeLogo, centreX, centreY, null);
return combined;
}