monochrome

Delphi / C ++ Builder / Lazarus报表开发:如何直接从代码中保存BPM / JPEG / TIFF / GIF?

ぐ巨炮叔叔 提交于 2020-10-06 04:32:49
报表生成器 FastReport VCL 是用于在软件中集成商务智能的现代解决方案。它提供了可视化模板设计器,可以访问最受欢迎的数据源,报告引擎,预览,将过滤器导出为30多种格式,并可以部署到云,Web,电子邮件和打印中。 近日,FastReport VCL更新至v6.7,在新版本中,添加了对最新版本IDE的支持,简化了用于付款标准的条形码的创建,新增从预览窗口直接编辑RichView的功能,同时修复了多个Bug问题。欢迎下载体验。( 下载最新版 ) 我们先来看看有哪些光栅图像格式。 BMP 首先,你应该知道,由于BMP是一个老的图像格式,它不是很流行的互联网用户,只有位图图像保存在这种格式不支持向量。 bmp文件的大小可能不同,这取决于图像的质量。尽管用户认为BMP格式已经过时,但它在许多领域都被积极地使用。例如,所有的Windows界面都基于这种格式。为什么BMP呢?因为它是方便使用时,创建图像,不失去质量后,编辑他们。BMP是Photoshop中编辑图片时经常使用的格式,这种格式也很容易上传到社交网络和各种网站上。 当然,最好使用现代的图像格式,因为它们是多层次的,而且您可以将它们上传到任何网站而不存在技术问题。同时,有许多选项来编辑这些图像,它们有一个较小的文件大小。 JPEG JPEG是存储图像的常用格式。它具有良好的压缩质量,可以观看图片。这种格式有很多好处

How to convert a BufferedImage to black and white?

☆樱花仙子☆ 提交于 2020-01-12 08:26:10
问题 How can I convert an existing colored BufferedImage to monochrome? I want the image to be completely split between only two rgb codes, black and white. So if there's a border around the image which is a lighter or darker shade of the background, and the background is being converted to white, then I want the border to be converted to white as well, and so on. How can I do this? If its necessary to save the image / load it from disk, I can do that if necessary. Edit: Code to test this: package

monochrome black-and-white bitmap

时间秒杀一切 提交于 2019-12-31 05:06:27
问题 I'm working on Android for converting a colored bitmap captured from the camera into a black-and-white monochromatic image (no grays!). I've got several methods for the gray scale conversion but I can't manage to get my image to a b&W format. Are there any methods for converting a bitmap into this format? 回答1: One solid way is a mean threshold bitmap. The method is described in this paper, in the method section. It's often used for image alignment, and will compensate for different brightness

Android: Converting a Bitmap to a Monochrome Bitmap (1 Bit per Pixel)

ⅰ亾dé卋堺 提交于 2019-12-28 05:16:32
问题 I want to print a Bitmap to a mobile Bluetooth Printer (Bixolon SPP-R200) - the SDK doesn't offer direkt methods to print an in-memory image. So I thought about converting a Bitmap like this: Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); To a Monochrome Bitmap. I am drawing black text on above given Bitmap using a Canvas, which works well. However, when I convert the above Bitmap to a ByteArray, the printer seems to be unable to handle those bytes. I suspect I

Android: Converting a Bitmap to a Monochrome Bitmap (1 Bit per Pixel)

百般思念 提交于 2019-12-28 05:16:10
问题 I want to print a Bitmap to a mobile Bluetooth Printer (Bixolon SPP-R200) - the SDK doesn't offer direkt methods to print an in-memory image. So I thought about converting a Bitmap like this: Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); To a Monochrome Bitmap. I am drawing black text on above given Bitmap using a Canvas, which works well. However, when I convert the above Bitmap to a ByteArray, the printer seems to be unable to handle those bytes. I suspect I

Javascript: detect monochrome display

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 13:30:59
问题 I've been testing an HTML5 webapp on eReaders, and I got it mostly working, but the colors are all messed up (it's monochrome). My app uses lots of colors with an update every second. I need this to run on colored displays as well, so I need to detect if it's monochrome. The eReader that I'm using is made by Sony, and it reports screen.pixelDepth and screen.colorDepth as both 16, which IS different than most other devices I support (24 and 32 are common). My ideas so far are: Always display

Image conversion to Grayscale using ImageMagick is very dark

若如初见. 提交于 2019-11-30 17:51:30
I converted a bunch of "normal" JPG photos via convert infile -colorspace Gray outfile to monochrome. However the result is for all images very dark. Here a sample conversion: original photo and converted monochrome image . Is there a better way to convert a photo-realistic image with ImageMagick to gray-scale? The documentation states that when changing the color space, the colors are converted from their original gamma to linear before the conversion. You need to convert them back to an appropriate gamma. convert infile -colorspace Gray -gamma 2.2 outfile 来源: https://stackoverflow.com

RGB to monochrome conversion

China☆狼群 提交于 2019-11-30 06:31:20
问题 How do I convert the RGB values of a pixel to a single monochrome value? 回答1: I found one possible solution in the Color FAQ. The luminance component Y (from the CIE XYZ system ) captures what is most perceived by humans as color in one channel. So, use those coefficients: mono = (0.2125 * color.r) + (0.7154 * color.g) + (0.0721 * color.b); 回答2: This MSDN article uses (0.299 * color.R + 0.587 * color.G + 0.114 * color.B); This Wikipedia article uses (0.3* color.R + 0.59 * color.G + 0.11 *

Image conversion to Grayscale using ImageMagick is very dark

本小妞迷上赌 提交于 2019-11-30 01:38:43
问题 I converted a bunch of "normal" JPG photos via convert infile -colorspace Gray outfile to monochrome. However the result is for all images very dark. Here a sample conversion: original photo and converted monochrome image. Is there a better way to convert a photo-realistic image with ImageMagick to gray-scale? 回答1: The documentation states that when changing the color space, the colors are converted from their original gamma to linear before the conversion. You need to convert them back to an

Convert a image to a monochrome byte array

*爱你&永不变心* 提交于 2019-11-28 14:22:19
I am writing a library to interface C# with the EPL2 printer language. One feature I would like to try to implement is printing images, the specification doc says p1 = Width of graphic Width of graphic in bytes. Eight (8) dots = one (1) byte of data. p2 = Length of graphic Length of graphic in dots (or print lines) Data = Raw binary data without graphic file formatting. Data must be in bytes. Multiply the width in bytes (p1) by the number of print lines (p2) for the total amount of graphic data. The printer automatically calculates the exact size of the data block based upon this formula. I