天道酬勤,学无止境

pixelate

ICS 上的 Android webview 应用程序变得像素化(Android webview app on ICS getting pixelated)

问题 我的 android 应用程序在所有 android 设备上运行良好,除了具有 ICS 的三星设备。 这是一个 webview 应用程序,图像在具有 ICS 的三星设备上变得像素化。 对此有什么想法吗? 回答1 我得到了解决方案 :) 我只是在 xml 文件的应用程序标记中包含了一行 android:hardwareAccelerated="true"。 对于这一行,我不得不将项目构建目标更改为 Android 3.0。 就是这样! 像素化问题消失了:)

2021-10-23 20:09:37    分类:技术分享    android   android-webview   android-4.0-ice-cream-sandwich   pixelate

Android webview app on ICS getting pixelated

My android app is working fine on all android devices except in samsung devices having ICS. It's a webview app and the images are getting pixelated on samsung devices having ICS. Any idea on this?

2021-10-23 16:24:11    分类:问答    android   android-webview   android-4.0-ice-cream-sandwich   pixelate

How to pixelate a binary (P6) PPM file

I am struggling to pixelate an image which is made up of RGB values stored in a binary (P6) PPM file. The steps to pixelate the image are as follows: Read in the binary data and store it in a 1-dimensional array Iterate through the data stored in this array, in cells of size 'c' (row x columns). This variable 'c' can be changed by the user, but for this program it's currently set to int c = 4; meaning it iterates through pixel data in block dimensions of 4 x 4 Now find the average colour value within each of those cells of size 'c' Output each average colour value to a new output PPM file Each

2021-10-08 06:36:46    分类:问答    c   image-processing   binary   ppm   pixelate

堆栈 cookie 检测代码检测到基于堆栈的缓冲区溢出 - 已修复(Stack cookie instrumentation code detected a stack-based buffer overrun - Fixed)

问题 所以我在使用这个用于像素化图像的程序时遇到了一些问题。 一个问题是我得到一个“围绕变量‘pixArray’的堆栈已损坏”,然后,当我在破坏后单击继续时,它会在标题中出现错误。 我不确定使用 pastebin 是否可以接受,但我会使用它是为了有一个“简短”的帖子。 代码 正在使用的图像 此外,当它运行时,所有像素化方块在方块的左侧和顶部都太短了一个像素。 它只是在写入 outFile 时使用原始数据。 如果您可以尝试找出发生这种情况的原因,您将获得奖励积分。 最后,平均值似乎没有正确平均,正如您在运行程序后图像最右侧周围的方块所看到的那样。 对任何这些问题的任何帮助将不胜感激。 提前致谢! 编辑:我对代码进行了排序,注释掉了使用pixArray的部分,注释掉后修复问题的部分位于函数的底部, getAveragesForRGB start = 0;//reset start number for(int row = 0; row < squareSize; row++) { if(row != 0) start = ((square * MAXROWS) / (MAXCOLS / squareSize)) + 1; stop = (((square + 1) * MAXROWS) / (MAXCOLS / squareSize)); for (int col = start

2021-08-11 09:20:36    分类:技术分享    c++   image-processing   buffer-overrun   pixelate   stack-based

Stack cookie instrumentation code detected a stack-based buffer overrun - Fixed

so I am having a few issues with this program used to pixelate an image. One issue is that I get a "Stack around the variable 'pixArray' was corrupted" and then, when I click continue after breaking it gives the error in the title. I'm not sure if it is acceptable to use pastebin, but I'll use it for the sake of having a "short" post. The Code The Image Being Used Also, when it runs through, all of the pixelated squares are one pixel too short on the left and top of the squares. It is just using the original data when it writes to the outFile. If you could try to figure out why this is

2021-07-29 23:27:50    分类:问答    c++   image-processing   buffer-overrun   pixelate   stack-based

如何用java像素化jpg?(How can I pixelate a jpg with java?)

问题 我正在尝试使用 Java 6 对 JPEG 进行像素化,但运气不佳。 它需要与 Java 一起使用——而不是像 Photoshop 这样的图像处理程序,而且它需要看起来很老派——像这样: 有谁能够帮我? 回答1 使用java.awt.image (javadoc) 和javax.imageio (javadoc) API,您可以轻松地遍历图像的像素并自己执行像素化。 示例代码如下。 您至少需要这些导入: javax.imageio.ImageIO 、 java.awt.image.BufferedImage 、 java.awt.image.Raster 、 java.awt.image.WritableRaster和java.io.File 。 例子: // How big should the pixelations be? final int PIX_SIZE = 10; // Read the file as an Image img = ImageIO.read(new File("image.jpg")); // Get the raster data (array of pixels) Raster src = img.getData(); // Create an identically-sized output raster WritableRaster

2021-06-10 01:15:55    分类:技术分享    java   jpeg   pixel   pixelate

PHP image pixelate?

I need to make this effect with php. I know that there is IMG_FILTER_PIXELATE in PHP image filter. But I need it to be smoother and embossed? like in this image: This effect will make any image uploaded by user become pixelated and the edge of the picture become red (I know IMG_FILTER_EDGEDETECT but I don't know how to use it to change edge color). I have no idea how to do this.

2021-05-31 16:00:18    分类:问答    php   image   filter   effect   pixelate

CSS-CSS3像素点背景(CSS - CSS3 pixelate dot background)

问题 是否有可能使背景像附件中的图像一样像素化? 我使用背景图片,但是您可以看到它没有缩放,并且在页面滚动时会闪烁。 现在有了vlcekmi3,我有了CSS: background-color: white; background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black); background-size:100px 100px; background-position: 0 0, 50px 50px; 但是我无法使其完全像图像一样。 有人可以检查吗? 任何代码,资源,教程和建议都值得赞赏。 回答1 这是我能拿出最好的匹配您的图像的方法。 它是根据Lea Verou的示例改编的,对于非css3浏览器,您的后备情况将是什么? body { background-image: -moz-linear-gradient(45deg, #666 25%, transparent 25%), -moz-linear-gradient(-45deg, #666 25%

2021-05-17 21:23:34    分类:技术分享    css   background   pixelate

How can I pixelate a jpg with java?

I'm trying to pixelate a JPEG with Java 6 and not having much luck. It needs to be with Java - not an image manipulation program like Photoshop, and it needs to come out looking old school - like this: Can anybody help me?

2021-05-17 01:49:27    分类:问答    java   jpeg   pixel   pixelate

CSS - CSS3 pixelate dot background

Is it possible or is there a trick to make a background pixelated like the one in the image attached? I use a background image, but as you can see it doesn't scale and it flashs on page scrolling. Now I have CSS thanks to vlcekmi3: background-color: white; background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black); background-size:100px 100px; background-position: 0 0, 50px 50px; But I'm unable to make it exactly like the image. Can someone check it? Any code

2021-04-22 09:37:09    分类:问答    css   background   pixelate