Print Page | Close Window

Markup displayed images are no longer transparent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=21639
Printed Date: 15 July 2025 at 2:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup displayed images are no longer transparent
Posted By: Heath
Subject: Markup displayed images are no longer transparent
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net