Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Resize an Image
Resize an Image [message #654248] Mon, 14 February 2011 12:01 Go to next message
Veit Hoffmann is currently offline Veit Hoffmann
Messages: 20
Registered: July 2009
Junior Member
Hi,

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.

Cheers

Veit
Re: Resize an Image [message #663766 is a reply to message #654248] Wed, 06 April 2011 08:50 Go to previous messageGo to next message
J. Weimar is currently offline J. Weimar
Messages: 8
Registered: March 2011
Location: Germany
Junior Member
I have a similar problem. The attributes "StretchH" and "StretchV" seem have no effect.
Any ideas?

[Updated on: Wed, 06 April 2011 10:39]

Report message to a moderator

Re: Resize an Image [message #665069 is a reply to message #663766] Wed, 13 April 2011 03:44 Go to previous messageGo to next message
Veit Hoffmann is currently offline Veit Hoffmann
Messages: 20
Registered: July 2009
Junior Member
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.

Cheers

Veit
Re: Resize an Image [message #665127 is a reply to message #663766] Wed, 13 April 2011 07:37 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1577
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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?
Re: Resize an Image [message #665465 is a reply to message #665127] Thu, 14 April 2011 13:00 Go to previous message
Veit Hoffmann is currently offline Veit Hoffmann
Messages: 20
Registered: July 2009
Junior Member
Hi Michael,

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?
Previous Topic:IGotoMarker and Editor Reopening
Next Topic:broken link
Goto Forum:
  


Current Time: Fri Aug 22 03:55:53 EDT 2014

Powered by FUDForum. Page generated in 0.01656 seconds