Alaska Software Inc. - PNG in XbpBrowse
Username: Password:
AuthorTopic: PNG in XbpBrowse
Igor GolbrodskiyPNG in XbpBrowse
on Wed, 14 Dec 2016 10:10:40 +0200
Hi all.
I have a problem with using of transparent PNG (alpha channel) in XbpBrowse



It works properly with ordinary BMP (after oXbp:transparentClr := oXbp:getDefaultBGColor()) but how I have to use PNG for it?
Many thanks in advance

---------------- 

Best regards, 

Igor Golobrodskiy 

WG SoftPro 

E-mail: i.golobrodskiy@wgsoftpro.com 

URL: http://www.wgsoftpro.com


image[1].png
Igor GolbrodskiyRe: PNG in XbpBrowse
on Thu, 15 Dec 2016 18:05:40 +0200
I create BMP as

         oXbp:setBuffer(LoadResource(nResource,,"PNG"),XBPBMP_FORMAT_PNG)

and then use it in XbpColumn:datalink.

Do not use PNG in XbpBrowse for v.2.0  ?



"Igor Golbrodskiy" <i.golobrodskiy@wgsoftpro.com> сообщил(а) в новостях следующее:1a0a72cf$5c7c77e7$28eaf@news.alaska-software.com...
Hi all.
I have a problem with using of transparent PNG (alpha channel) in XbpBrowse



It works properly with ordinary BMP (after oXbp:transparentClr := oXbp:getDefaultBGColor()) but how I have to use PNG for it?
Many thanks in advance

---------------- 

Best regards, 

Igor Golobrodskiy 

WG SoftPro 

E-mail: i.golobrodskiy@wgsoftpro.com 

URL: http://www.wgsoftpro.com


image[1].png
Igor GolbrodskiyRe: PNG in XbpBrowse
on Mon, 19 Dec 2016 08:45:12 +0200
Nobody knows how do it?

"Igor Golbrodskiy" <i.golobrodskiy@wgsoftpro.com> сообщил(а) в новостях следующее:3a0bd793$4db1bf16$96b18@news.alaska-software.com...
I create BMP as

         oXbp:setBuffer(LoadResource(nResource,,"PNG"),XBPBMP_FORMAT_PNG)

and then use it in XbpColumn:datalink.

Do not use PNG in XbpBrowse for v.2.0  ?



"Igor Golbrodskiy" <i.golobrodskiy@wgsoftpro.com> сообщил(а) в новостях следующее:1a0a72cf$5c7c77e7$28eaf@news.alaska-software.com...
Hi all.
I have a problem with using of transparent PNG (alpha channel) in XbpBrowse



It works properly with ordinary BMP (after oXbp:transparentClr := oXbp:getDefaultBGColor()) but how I have to use PNG for it?
Many thanks in advance

---------------- 

Best regards, 

Igor Golobrodskiy 

WG SoftPro 

E-mail: i.golobrodskiy@wgsoftpro.com 

URL: http://www.wgsoftpro.com


image[1].png
Peter AlderliestenRe: PNG in XbpBrowse
on Mon, 19 Dec 2016 09:32:14 +0100
Igor,

> Nobody knows how do it?
> 
> "Igor Golbrodskiy" <i.golobrodskiy@wgsoftpro.com> сообщил(а) в новостях следующее:3a0bd793$4db1bf16$96b18@news.alaska-software.com...
> I create BMP as
> 
>          oXbp:setBuffer(LoadResource(nResource,,"PNG"),XBPBMP_FORMAT_PNG)
> 
> and then use it in XbpColumn:datalink.
> 
> Do not use PNG in XbpBrowse for v.2.0  ?

This is in the manual: 
Note: Background masking (chroma keying) is not supported for images with
an alpha channel. This means that the value in :transparentClr is ignored
in this case. 
But check :transparentClr / :tranparency 

What I do is paint the background in the colour I need and then paste the
image on top of it.

Peter
Igor GolbrodskiyRe: PNG in XbpBrowse
on Tue, 20 Dec 2016 09:08:27 +0200
Yes Peter, but in this case I have to prepare 2 different bitmaps: for 
normal and hilite records. It's not very convenient  


> Nobody knows how do it?
>
> "Igor Golbrodskiy" <i.golobrodskiy@wgsoftpro.com> сообщил(а) в новостях 
> следующее:3a0bd793$4db1bf16$96b18@news.alaska-software.com...
> I create BMP as
>
>          oXbp:setBuffer(LoadResource(nResource,,"PNG"),XBPBMP_FORMAT_PNG)
>
> and then use it in XbpColumn:datalink.
>
> Do not use PNG in XbpBrowse for v.2.0  ?

This is in the manual:
Note: Background masking (chroma keying) is not supported for images with
an alpha channel. This means that the value in :transparentClr is ignored
in this case.
But check :transparentClr / :tranparency

What I do is paint the background in the colour I need and then paste the
image on top of it.

Peter
Peter AlderliestenRe: PNG in XbpBrowse
on Tue, 20 Dec 2016 11:08:32 +0100
Igor,

> Yes Peter, but in this case I have to prepare 2 different bitmaps: for 
> normal and hilite records. It's not very convenient  

Then you would have to paint the same bitmap on two different backgrounds.
At least that's what I do with toolbar buttons.

Peter
Igor GolbrodskiyRe: PNG in XbpBrowse
on Wed, 21 Dec 2016 11:53:34 +0200
Thanks, Peter for your advise.
I do it too with toolbar.

"Peter Alderliesten" сообщил(а) в новостях 
следующее:arghdiq81x0a.1e3tjp2l6adwm.dlg@40tude.net...

Igor,

> Yes Peter, but in this case I have to prepare 2 different bitmaps: for
> normal and hilite records. It's not very convenient  

Then you would have to paint the same bitmap on two different backgrounds.
At least that's what I do with toolbar buttons.

Peter