ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Pixelate photo

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Gordon Ham Posted - Feb 28 2020 : 14:34:17
I have a 32x32 LED display. I want to pixelate a photo to 32x32. Can It be done? If so, how?

Gordon
8   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 23 2020 : 14:16:19
Hi

I don't know TImage, but perhaps you could size it to TImage size in ImageEn with the desired pixelation and then display it (1:1)

Nigel
Xequte Software
www.imageen.com
Gordon Ham Posted - Mar 23 2020 : 13:13:13
I resized my image fine.. but I really need to show my modified image on a TImage (Image will be sent to a linux machine)
When I show it on a TImage with the stretch property, it uses some sort of interpolation. I want to see the pixelated version, not a smoothed one. If I turn off the AntiAliasing, it doesnt make any difference. Is there something simple Im missing?




Gordon Ham Posted - Mar 05 2020 : 12:28:55
Got it, works great. Thank you
xequte Posted - Mar 04 2020 : 13:48:21
Hi

Yes, you can do this with a TImageEnView, or just a TIEBitmap using the Resample method:

ImageEnView1.Proc.Resample( 64, 64, rfNone );

https://www.imageen.com/help/ImageEn/TImageEnProc.Resample.html


When resampling, a Zoom Filter is typically used to improve the quality. That is why you should take a look at the ZoomFilter demo and zoom a large image out to around your desired 64x64 and see which filter works best.

Nigel
Xequte Software
www.imageen.com
Gordon Ham Posted - Mar 04 2020 : 11:41:37
I looked at the zoomFilter demo.. Im not wanting to zoom. I want the image area to stay the same.. I just want to change the resolution to be very pixelated 64x64 etc.
Gordon Ham Posted - Mar 04 2020 : 11:20:12
Yes, in most cases it will be very very blurry..but wanting the general outline of a photo. Can everything be done with a simple TImageEn component? Or do I need others? I assume that my photo needs to be perfectly square in pixels, or it wont scale with the right ratio?
xequte Posted - Mar 01 2020 : 23:49:06
Hi Gordon

It sounds like you should resize the image to 32x32 and then read the pixels.

If it is a large image, scaling to something as small as that may create a blurry mess, so try the following demo to see what gives the best result:

Demos\Display\ZoomFilter\ZoomFilter.dpr

To read the pixels, use:

https://www.imageen.com/help/ImageEn/TIEBitmap.Pixels_ie24RGB.html

Nigel
Xequte Software
www.imageen.com
Gordon Ham Posted - Feb 28 2020 : 16:05:59
I want to add, Once I have 32 pixels, I want access to the RGB of each pixel, so I can send the data to the LED's. It real world, will be more like 64x64. Im thinking its kind of like converting a photo to a 64x64 Icon?