Are you saying I need to convert all my bitmaps to IUP image_bits text
arrays before I'm able to mask the 197 unwanted background color? Am I
not able to do this with the original .bmp images?



On Fri, 2016-01-08 at 18:05 -0200, Antonio Scuri wrote:
>   Hi,
> 
> 
>   I'm in the middle of a debug section here that is taking forever...
> So I'm not very responsive since New Year's Eve. Sorry.
> 
> 
>  If you convert the image to LED or C using IupView you will be able
> to identify the background color index in the palette. You can do that
> also in other Paint programs.
> 
> 
>   Then programmatically  change the color on the IupImage to the
> "BGCOLOR" value. For instance:
> 
> 
> IupSetAttribute(image, "17", "BGCOLOR");
> 
> 
>   This will make the color to be replace by the label or button actual
> background color. 
> 
> 
>   So you wound't need to manually edit each image you have... 
> 
> 
> Best,
> Scuri
> 
> 
> 
> 
> 
> 
> 
> On Thu, Jan 7, 2016 at 3:32 PM, John Spikowski
> <supp...@scriptbasic.org> wrote:
>         Hi List,
>         
>         I'm trying to use some bitmaps that have the classic Windows
>         button
>         background color which I would like to mask. How is this done?
>         
>         I'm using a IupSetAttributes with a "IMAGE=mybutpic.bmp". They
>         are 16x16
>         256 color bitmaps.
>         
>         
>         Thanks for any help with this!
>         
>         
>         John
>         
>         
>         
> ------------------------------------------------------------------------------
>         _______________________________________________
>         Iup-users mailing list
>         Iup-users@lists.sourceforge.net
>         https://lists.sourceforge.net/lists/listinfo/iup-users
>         
> 
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to