RSS/Atom feed Twitter
Site is read-only, email is disabled

Is there anything like a gimp_drawable_zoom_preview ?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Is there anything like a gimp_drawable_zoom_preview ? Jean Tourrilhes 15 Oct 21:42
  Is there anything like a gimp_drawable_zoom_preview ? Sven Neumann 15 Oct 22:06
   Is there anything like a gimp_drawable_zoom_preview ? Jean Tourrilhes 15 Oct 22:17
    Is there anything like a gimp_drawable_zoom_preview ? Sven Neumann 15 Oct 22:23
Jean Tourrilhes
2007-10-15 21:42:04 UTC (about 17 years ago)

Is there anything like a gimp_drawable_zoom_preview ?

Hi,

Sorry to disturb you all... I'm using a plugin that has a preview in its main window. The preview is so small on my screen that I can't really see any of the adjustements. So, I would like to optionally make the preview bigger. I had a quick look at the code and the documentation. At first glance, it would seem that I would need to replace the "gimp_drawable_preview" with the "gimp_zoom_preview". However, the preview is updated via gimp_drawable_preview_draw_region(), and this call does not seem to exist for the "gimp_zoom_preview".
So, I guess I would need to combine the "gimp_drawable_preview" and "gimp_zoom_preview" in some fashion, or find if there exist a "gimp_drawable_zoom_preview" object. Does anybody has some useful suggestions ?

Thanks in advance...

Jean

Sven Neumann
2007-10-15 22:06:55 UTC (about 17 years ago)

Is there anything like a gimp_drawable_zoom_preview ?

Hi,

On Mon, 2007-10-15 at 12:42 -0700, Jean Tourrilhes wrote:

So, I guess I would need to combine the "gimp_drawable_preview" and "gimp_zoom_preview" in some fashion, or find if there exist a "gimp_drawable_zoom_preview" object.

Using a zoomable preview is somewhat more difficult than using a GimpDrawablePreview. You can't just do search and replace and expect this to work. I suggest that you have a look at some of the plug-ins in the 2.4 source tree that use it.

Sven

Jean Tourrilhes
2007-10-15 22:17:26 UTC (about 17 years ago)

Is there anything like a gimp_drawable_zoom_preview ?

On Mon, Oct 15, 2007 at 10:06:55PM +0200, Sven Neumann wrote:

Hi,

Thanks for the *very* quick answer, that's appreciated.

On Mon, 2007-10-15 at 12:42 -0700, Jean Tourrilhes wrote:

So, I guess I would need to combine the "gimp_drawable_preview" and "gimp_zoom_preview" in some fashion, or find if there exist a "gimp_drawable_zoom_preview" object.

Using a zoomable preview is somewhat more difficult than using a GimpDrawablePreview. You can't just do search and replace and expect this to work.

That's unfortunate.
Note that I personally believe that all GimpDrawablePreview should be zoomable, but it's probably because I've been using high resolutions display for too long.

I suggest that you have a look at some of the plug-ins in the 2.4 source tree that use it.

I'll look into that, if I can find time. Or the alternative is to scale up the region before pusing it to the GimpDrawablePreview.

Sven

Have fun...

Jean

Sven Neumann
2007-10-15 22:23:59 UTC (about 17 years ago)

Is there anything like a gimp_drawable_zoom_preview ?

Hi,

On Mon, 2007-10-15 at 13:17 -0700, Jean Tourrilhes wrote:

Note that I personally believe that all GimpDrawablePreview should be zoomable, but it's probably because I've been using high resolutions display for too long.

That is why we introduced GimpZoomPreview. It's just that, a drawable preview with zoom capabilities.

I suggest that you have a look at some of the plug-ins in the 2.4 source tree that use it.

I'll look into that, if I can find time. Or the alternative is to scale up the region before pusing it to the GimpDrawablePreview.

Which is what you would do with GimpZoomPreview. The main purpose of GimpZoomPreview is to provide the infrastructure to display a scaled preview. It's still up to you do actually provide it the scaled data. But why don't you just look at the code? That would help a lot more than speculating about it.

Sven