Having created PNG images of playing cards and used GIMP to 'transparent' curved corners, I having problems with Perl/Tk failing to allow the background to be shown in these 'transparent' areas, instead I am seeing four white areas. There is now problem is displayed in HTML: (my HTML code is not showing correctly so for imgage please read img.)

<html> </p> <p> <body bgcolor="#E6E6FA"> </p> <p> <img src="Cards/00.png"> </p> <p> <img src="Cards/20.png"> </p> <p> <img src="Cards/50.png"> </p>
...... etc (see:- http://i.imgur.com/wlnHn6h.png) but the 'failing' code, of the form:
$Card_Back = $main->Photo( '-format' => 'png', -file => $dir . "Cards/00.png");
produces this type of display: http://i.imgur.com/6N13iKX.png Thanks for any help, Bill

In reply to Perl/Tk problems with PNG transparence by wmfs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.