I want to create a shape with an image in the background, that resizes
according to the size of the container shape. I.e. i want to scale the
"SWT"-Image in the "Graphiti"-Image. Is this possible with Graphiti somehow?
I am able to create the background image but setting the size of the
"Graphiti"-Image doesn't affect the size of the "SWT"-Image.
Am 06.04.2011 14:50, schrieb J. Weimar:
> I have a similar problem. The attributes "StretchH" and "StretchV" seem
> have no effect.
> Any ideas?
Hi, yes that is true. This might be considered a bug.
I managed to work around this problem by implementing an
IGraphicsAlgorithmRenderer that handles Scaling and Disposure of Images.
To get this working you have to register an
IGraphicsAlgorithmRendererFactory in your DiagramTypeProvider.
An examaple for this can be found in Bug 326730.
I filed a bug for this: Bug 342869
I hope the intended behavior is clear.
Cheers,
Veit
Am 13.04.2011 13:37, schrieb Michael Wenz:
> If that is the case then it's definitely a bug. Please open a bugzilla
> against Graphiti to track this.
>
> Thanks,
> Michael
>
>
> "J. Weimar" wrote in message news:inhn45$bdn$1@news.eclipse.org...
>
> I have a similar problem. The attributes "StretchH" and "StretchV" seem
> have no effect.
> Any ideas?