Image Color Change

Stimulsoft Reports.NET discussion
Post Reply
mattrj
Posts: 1
Joined: Fri Dec 15, 2017 2:54 pm

Image Color Change

Post by mattrj »

Hi,

I'm using Microvellum and am curios if there is a way to adjust image color based on what data it is pulling. The current version we are running of Stimulsoft Reports is 2017.1.6.0.

Currently our images are coming from the Data Column and we are using both WMFStream and WMFStreamFace6. I would like to change the color of the image of the Face6 from black to red to give our operators more information on the secondary machining. In our industry the Face 6 means machining to be done on the opposite side of a part.

If anyone could help us that would be great, it's a small thing, but the more information we can give our coworkers the better.

Thanks,
Matt
Attachments
Designer Face 6 snip
Designer Face 6 snip
WMFStreamFace6.JPG (272.92 KiB) Viewed 4419 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image Color Change

Post by Alex K. »

Hello,

You can try to use the Condition in which set necessary color depends of your value.

Thank you.
User avatar
tishwMV
Posts: 14
Joined: Fri Jul 28, 2017 5:17 pm
Location: Medford, OR

Re: Image Color Change

Post by tishwMV »

I'm using Microvellum just as mattrj is

I am a little familiar with the condition for making text change color but would that be the same to a data column like an image?

I see here how to do it for text: https://stimulsoft.com/en/documentation ... conditions

I believe mattrj is looking for a way to have the black lines on the image display as red rather than a background color.

Here's what I got from using the following conditions.
Attachments
00000 Testing Conditions 180117-095313001.png
00000 Testing Conditions 180117-095313001.png (22.04 KiB) Viewed 4384 times
2018-01-17_100119.png
2018-01-17_100119.png (16.53 KiB) Viewed 4384 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image Color Change

Post by Alex K. »

Hello,

Thank you for your information.
User avatar
tishwMV
Posts: 14
Joined: Fri Jul 28, 2017 5:17 pm
Location: Medford, OR

Re: Image Color Change

Post by tishwMV »

Is there not a way to change the color?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image Color Change

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
You can use Condition for this case.

Thank you.
User avatar
tishwMV
Posts: 14
Joined: Fri Jul 28, 2017 5:17 pm
Location: Medford, OR

Re: Image Color Change

Post by tishwMV »

Is there a way to set a condition on an image? If X is true then display X otherwise display X?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image Color Change

Post by Alex K. »

Hello,

Do you need show different images? In this case - you can place two Image components and by Condition show only necessary.

Thank you.
User avatar
tishwMV
Posts: 14
Joined: Fri Jul 28, 2017 5:17 pm
Location: Medford, OR

Re: Image Color Change

Post by tishwMV »

Alex,

Can you show me an example of how you'd do a condition for an image like that?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image Color Change

Post by Alex K. »

Hello,

You can check your column with image as
DataSourceName["ImageColumnName"] == DBNull.Value

and set the option "Component Is Enabled" to false

Thak you.
Post Reply