CreateClipRegion / SetClipRegion / SetLayerStyle Bug?

Discuss any general programming issues here

CreateClipRegion / SetClipRegion / SetLayerStyle Bug?

Postby nexus » Sat Aug 19, 2017 2:32 pm

In Hollywood 7, layers enabled (currently only tested with linux):

When trying to display an image (PNG or SVG) within a clip region, I have been running into the following issue:

1) When creating a clip region & applying the region with SetClipRegion & then displaying the Image: works fine
2) When creating a clip region & applying the region with SetClipRegion & then displaying the Image with {ScaleX=2, ScaleY=2}
in SetLayerStyle() as argument for the image layer:
The image layer is not correctly clipped & everthing outside the clipregion is completely shown, too.
I experimented with adding in addition "clipregion=<clip-region-id>" in the SetLayerStyle-table, but no luck.

When first hiddenly displaying an image ("hidden=True"), then creating & applying a clip region, then changing the image-coordinates via SetLayerStyle + "hidden=False", has the same Problem. Though, it seems within the clipregion, it is shown correctly (I have some fading effects in that region).

I'd love to give a concrete example, however, i am running out of time for a presentation and hence, just wanted to know if this is a known issue or if it is more likely that I am doing something wrong. :)

Anyway, my current work around: Scale the image by external tools in beforehand & then display the image unscaled => works.

Cheers,
Tom.
nexus
 
Posts: 14
Joined: Sun Mar 07, 2010 12:54 pm

Re: CreateClipRegion / SetClipRegion / SetLayerStyle Bug?

Postby airsoftsoftwair » Tue Aug 22, 2017 5:13 pm

Sounds like a bug to me but please provide an example and I'll check.
User avatar
airsoftsoftwair
 
Posts: 2233
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 4 guests