Skip to main content


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 17:01 Go to next message
Veit Hoffmann is currently offline Veit HoffmannFriend
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 12:50 Go to previous messageGo to next message
J. Weimar is currently offline J. WeimarFriend
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 14:39]

Report message to a moderator

Re: Resize an Image [message #665069 is a reply to message #663766] Wed, 13 April 2011 07:44 Go to previous messageGo to next message
Veit Hoffmann is currently offline Veit HoffmannFriend
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 11:37 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 17:00 Go to previous message
Veit Hoffmann is currently offline Veit HoffmannFriend
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: Thu Apr 18 03:13:18 GMT 2024

Powered by FUDForum. Page generated in 0.02035 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top