FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour problem with circular bmp images in ribbonbar
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
problem with circular bmp images in ribbonbar
Posted: Sun Feb 12, 2017 09:11 AM
I have some old programs with via-coral ribbonbar that i want to convert to fivewin ribbonbar.
i have a problem with circular bmp images: in via-coral ribbonbar appears:



in fivewin ribbobar appears:



is there a way to correct the contour black pixels effect?

thanls in advance,
marzio
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Mon Feb 13, 2017 10:48 AM
I have some old programs with via-coral ribbonbar that i want to convert to fivewin ribbonbar.
i have a problem with circular bmp images: in via-coral ribbonbar appears:



in fivewin ribbobar appears:



is there a way to correct the contour black pixels effect?

thanls in advance,
marzio
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: problem with circular bmp images in ribbonbar
Posted: Mon Feb 13, 2017 11:58 AM

We will try.
May we ask how do you find the display of the same bitmaps on buttonbar?

Regards



G. N. Rao.

Hyderabad, India
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Mon Feb 13, 2017 02:41 PM

thanks for your attention.

here are seven bmp icons: http://www.valli-italy.net/download/marzio/bmp.zip

marzio

Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Mon Feb 13, 2017 05:06 PM
in buttonabar appears:

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: problem with circular bmp images in ribbonbar
Posted: Mon Feb 13, 2017 05:28 PM

Thanks
We are checking please.

Regards



G. N. Rao.

Hyderabad, India
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 03:02 PM
if this can help you to understand the problem, i have posted another button with alfabitmap image.
(i have inserted the alfabitmap image 'downadd.jpg' in the same zip file mentioned above).

in via-coral ribbonbar:


in fivewin ribbonbar:


thanks for your attention
marzio
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 03:26 PM

please send these two bitmaps also

Regards



G. N. Rao.

Hyderabad, India
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 04:00 PM
Using the images in the zip I notice the same thing. If I edit the .bmp with pixelformer and save them with Premultiplied alpha checked it looks ok.
Here is original Cancella.bmp and Plus.bmp

Here is the option selected and then the new .bmp images

Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 04:18 PM
i have inserted the new alfabitmap in the same zip, download it again.

http://www.valli-italy.net/download/marzio/bmp.zip

i will try your suggestion with photoshop.
thanks, marzio
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 04:44 PM

i have download pixelformer, in photoshop i don't see the check premultiplied, (i see only 32bit A8 R8 G8 B8)
with pixelformer now all is ok.
thanks very much,
marzio

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: problem with circular bmp images in ribbonbar
Posted: Tue Feb 14, 2017 07:13 PM
Photoshop is great but it is not always the easiest on bitmaps.
Here are a couple of options I read about doing this with Photoshop

One is to apply the alpha as transparency to a layer and use the Layer > Matting > Remove Black Matte function. Unfortunately this doesn't work when using a layer mask, the mask needs to be applied.

My preferred method would be to apply the alpha to the layer as a layer mask. Copy the alpha and paste it into a new layer above this masked layer. Clip the RGB version of the alpha to the masked layer and set its blend mode to Divide.


Seems more complicated and more steps so I use Pixelformer for simple stuff. I also use IconWorks and PhotoImpact.
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: problem with circular bmp images in ribbonbar
Posted: Wed Feb 15, 2017 09:26 AM

many thanks for your details!
i think that for alfabitmap i will use Pixelformer.
i will try also IconWorks and PhotoImpact.

marzio

Continue the discussion