Blackberry 从图形对象绘制html
我想从图形对象显示htmlBlackberry 从图形对象绘制html,blackberry,Blackberry,我想从图形对象显示html string htmlText = "<html>......</Html>" 欢迎任何帮助 我在这里建议一种解决方案。我不知道这对你是否有帮助。使用图形对象可以创建可变对象。然后,您可以像任何事情一样修改该图像。我在这里举一个例子 you can craeate the mutable Bitmap like Bitmap bmp = new Bitmap(width, height); Graphics c =
string htmlText = "<html>......</Html>"
欢迎任何帮助 我在这里建议一种解决方案。我不知道这对你是否有帮助。使用图形对象可以创建可变对象。然后,您可以像任何事情一样修改该图像。我在这里举一个例子
you can craeate the mutable Bitmap like
Bitmap bmp = new Bitmap(width, height);
Graphics c = new Graphics(bmp);
c.setFont(customFont);
c.setColor(Color.LIMEGREEN);
c.drawRect(5, 5, width-10, height-10);
c.setColor(Color.ROSYBROWN);
c.setFont(customFont);
c.drawText("Some text" , 5, 5);
c.setColor(Color.GREEN);
c.setFont(customFont);
c.drawLine(5, 20, width-10, 20);
像这样,你可以用图形在位图上画不同的东西。我想这对你有帮助。
如果您觉得有用的话,请随意发布。假设我有一些文本必须加下划线(来自HTML标记)。我希望它被解析并显示为html,目前在我看来,在文本中找到相关标记后,我必须“手动”在文本下画一条线,这将非常糟糕。
you can craeate the mutable Bitmap like
Bitmap bmp = new Bitmap(width, height);
Graphics c = new Graphics(bmp);
c.setFont(customFont);
c.setColor(Color.LIMEGREEN);
c.drawRect(5, 5, width-10, height-10);
c.setColor(Color.ROSYBROWN);
c.setFont(customFont);
c.drawText("Some text" , 5, 5);
c.setColor(Color.GREEN);
c.setFont(customFont);
c.drawLine(5, 20, width-10, 20);