Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Markup displayed images are no longer transparent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup displayed images are no longer transparent

 Post Reply Post Reply
Author
Message
Heath View Drop Down
Groupie
Groupie


Joined: 05 April 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Heath Quote  Post ReplyReply Direct Link To This Post Topic: Markup displayed images are no longer transparent
    Posted: 09 May 2013 at 3:54pm
I have been using Codejock 15.3.1 to display a table of images in a record item using markup. The bitmap has background set to magenta which using SetMaskColor has successfully been displayed as transparent. Since upgrading to Codejock 16.1, the background of the images appear black.

The images are defined using the following;

CXTPImageManager *pImageManager = XTPImageManager();
pImageManager->SetMaskColor(RGB(255,0,255));    // Magenta
pImageManager->SetIcons(IDB_GLOBALMARKUPIMAGES_16, GlobalImageSmallCommandIds,
    _countof(GlobalImageSmallCommandIds), CSize(16, 16), xtpImageNormal);


The markup string written to the record item is as follows;

<Grid>
  <Grid.ColumnDefinitions>
    <ColumnDefinition Width='18'/>
    <ColumnDefinition Width='18'/>
    <ColumnDefinition Width='18'/>
    <ColumnDefinition Width='18'/>
  </Grid.ColumnDefinitions>
  <TextBlock Grid.Column='0'><InlineUIContainer><Image Source='1'/></InlineUIContainer></TextBlock>
  <TextBlock Grid.Column='1'><InlineUIContainer><Image Source='2'/></InlineUIContainer></TextBlock>
  <TextBlock Grid.Column='2'><InlineUIContainer><Image Source='3'/></InlineUIContainer></TextBlock>
  <TextBlock Grid.Column='3'><InlineUIContainer><Image Source='4'/></InlineUIContainer></TextBlock>
</Grid>


Is this a known issue? Is there a workaround?

Thanks,
Heath
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.098 seconds.