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
 blur for 32bit bitmaps?

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

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
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
babursaylan Posted - Apr 11 2022 : 07:34:21
Hi, as far as i understand about source code, IEProc.blur function doesnt run for 32bit bitmaps. The function neglects the transparency byte and returns 24bit bitmap result.

Is it really so? Am i missing something?

Or do you propose any solution?

Txs.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 16 2022 : 23:08:48
Hi Babur

Yes, you should use SynchronizeRGBA to convert from 32bit -> 24bit+Alpha, do your changes and then use SynchronizeRGBA again to convert it back to 32bit:

https://www.imageen.com/help/TIEBitmap.SynchronizeRGBA.html

Nigel
Xequte Software
www.imageen.com
babursaylan Posted - Apr 16 2022 : 15:32:17
Hi Nigel, the problem which i couldnt solve is this;

I have a transparent PNG, i need to draw something transparent on this PNG.

Then i need to call IO functions, like BLUR for example.

It can draw and blur, without problem. But i can not retrive a transparent PNG as result anymore.

To tell it as brief: i want to call blur function on a 32bit bitmap indeed, without loosing my original opacity values. It means that i need blur function to work on transparent bitmaps directly.

But as far as i understood, the blur function works on 24bit bitmap.

Do you think that we can find any solution?

Txs.
Babur Saylan
babursaylan Posted - Apr 14 2022 : 05:39:58
Txs, im working with transparent PNG, and want to apply blur function on this PNG.
xequte Posted - Apr 11 2022 : 17:29:10
Hi

Internally ImageEn uses 24bit bitmaps, optionally with 1 or 8bit alpha channel. In what context are you using 32bit bitmaps?

You can convert between 24bit+Alpha <--> 32bit using:

https://www.imageen.com/help/TIEBitmap.SynchronizeRGBA.html

Nigel
Xequte Software
www.imageen.com