bitmap

How to print bitmap without zoom from MVC controller in Debian

杀马特。学长 韩版系。学妹 提交于 2020-01-14 06:52:00
问题 Document is printed from MVC controller to Debian Squeeze Linux server printer using code below in Mono. Page in printer is A4. Printed text in paper is too big and unsharp. Rightmost part of text is not visible since it does not fit to page. If printed from Windows from .NET to HP Laserjet, output is correct. So it looks like Mono or Samsung ML-331x Series printer zooms bitmap for unknown reason which causes too big and unsharp output. How to fix this so that bitmap is printed like in

print image via bluetooth printer prints string

有些话、适合烂在心里 提交于 2020-01-14 05:49:07
问题 I have been working in printing an image via bluetooth printer. When I test it for text printing it works perfectly. But when it comes to image, prints only string characters. I have converted the layout into bitmap. And saved it into sd card. Do I need to convert the bitmap into something that supports for printer. Am using "ZEBRA EZ320" printer for my application. I have used the following code to convert the layout into bitmap, View rootView = findViewById(android.R.id.content).getRootView

c# Take a screenshot of specific area [closed]

[亡魂溺海] 提交于 2020-01-14 05:02:48
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I know there are many questions like this but none of their answers are working for me or just I can't do it correctly, anyway if it's possible please give me a simple code! I know the location of the green dot

静态加载位图

孤街浪徒 提交于 2020-01-13 21:40:16
图形控件Picture Control在对话框上添加图片 增加位图资源 选择Picture Control Type属性属性-- Bitmap Image属性选择导入的位图IDB_BITMAP1 编译 编译报错: error RC2108: expected numerical dialog constant 解决方法: 双击error RC2108…打开文件; 增加“Static”, SS_BITMAP即可。 来源: CSDN 作者: qq_36633275 链接: https://blog.csdn.net/qq_36633275/article/details/103960841

How do I convert image to 2-bit per pixel?

允我心安 提交于 2020-01-13 19:36:26
问题 Is there a quick tool to convert some image to 2-bits per pixel raw bitmap data? 回答1: you can use Imagemagick: if you only want a grayscale channel: convert image.png -depth 2 data.gray If you want 2 bits for each red green and blue channels: convert image.png -depth 2 data.rgb 回答2: In addition to David's command, I recommend that you set the -size as well as either of: convert -depth 2 -size 1x<number-pixels> f.png f.gray convert -depth 2 -size <number-pixels>x1 f.png f.gray since these are

How do I convert image to 2-bit per pixel?

▼魔方 西西 提交于 2020-01-13 19:36:06
问题 Is there a quick tool to convert some image to 2-bits per pixel raw bitmap data? 回答1: you can use Imagemagick: if you only want a grayscale channel: convert image.png -depth 2 data.gray If you want 2 bits for each red green and blue channels: convert image.png -depth 2 data.rgb 回答2: In addition to David's command, I recommend that you set the -size as well as either of: convert -depth 2 -size 1x<number-pixels> f.png f.gray convert -depth 2 -size <number-pixels>x1 f.png f.gray since these are

setColorFilter doesn't work on Android < 2.2

筅森魡賤 提交于 2020-01-13 13:37:38
问题 i have a problem with the setColorFilter-Method on a drawable. It works fine on Android 2.2 but not on a version lower than that. My problem is similar to what is described here Drawable.setColorFilter() not working on Android 2.1, but that doesn't work for me... I use this code which works fine on Android 2.2 but not on anything lower than that. ImageView imageView = (ImageView) findViewById( R.id.imageView1 ); Bitmap immutableBitmap = BitmapFactory.decodeResource( getResources(), R.drawable

How to Get Full Resolution & Uncompressed Image Data with Android Camera?

落花浮王杯 提交于 2020-01-13 10:55:31
问题 I want to get a full resolution(and not compressed)image data, then i can do some image processing. As far as i know, the android api takePicture (shutter, raw, jpg) can do something.But what i need is not a compressed JPEG data, a uncompressed image data instead.Also I knew the raw callback doesn't work according to some posts i have read. I also found the api onPreviewFrame, and the larggest picture size i got from this is 1280*720(use setPreviewSize) while the original image i caputure

winforms graphics with nearest neighbor filtering clipping edges of image

雨燕双飞 提交于 2020-01-13 10:07:03
问题 I'm writing a Chip8 emulator/interpreter. It's going great. To the point I need a UI to play some games and watch this bad Jackson in motion. I first ran into a problem where drawing the framebuffer (which is just a bitmap) to the screen was super-blurry. After figuring out I needed to set the interpolation mode to Nearest Neighbor it looked much better, but it seems the edges of the image are either being clipped or I'm misunderstanding the interpolation at work. Here's a screenshot. The

winforms graphics with nearest neighbor filtering clipping edges of image

跟風遠走 提交于 2020-01-13 10:04:28
问题 I'm writing a Chip8 emulator/interpreter. It's going great. To the point I need a UI to play some games and watch this bad Jackson in motion. I first ran into a problem where drawing the framebuffer (which is just a bitmap) to the screen was super-blurry. After figuring out I needed to set the interpolation mode to Nearest Neighbor it looked much better, but it seems the edges of the image are either being clipped or I'm misunderstanding the interpolation at work. Here's a screenshot. The