ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 blur for 32bit bitmaps?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

babursaylan

Turkey
15 Posts

Posted - Apr 11 2022 :  07:34:21  Show Profile  Reply
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.

xequte

38611 Posts

Posted - Apr 11 2022 :  17:29:10  Show Profile  Reply
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
Go to Top of Page

babursaylan

Turkey
15 Posts

Posted - Apr 14 2022 :  05:39:58  Show Profile  Reply
Txs, im working with transparent PNG, and want to apply blur function on this PNG.
Go to Top of Page

babursaylan

Turkey
15 Posts

Posted - Apr 16 2022 :  15:32:17  Show Profile  Reply
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
Go to Top of Page

xequte

38611 Posts

Posted - Apr 16 2022 :  23:08:48  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: