嘿,我已经在位图中转换了自定义列表视图。我的位图很大,所以我想使用PdfDocument类在PDF文件的两个单独页面中打印该位图。我已经搜索了相同的内容,但没有找到合适的解决方案。谁能帮我!!??
在使用PdfDoucment类之前,请尝试将位图分为两部分。
Bitmap source; //original bitmap file
Bitmap page1=Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight()/2);
Bitmap page2=Bitmap.createBitmap(source,0,source.getHeight()/2,source.getWidth(),source.getHeight());
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句