Hey,

there is swfdec-thumbnailer as part of swfdec-gnome. It does not let
you specify which frame to save though. If you need that, you need to
get your hands dirty, and it'll look roughly like this (note: this is
from the top of my head and not compiled):

void
swfdec_player_save (SwfdecPlayer *player, guint width, guint height,
const char *filename)
{
  cairo_surface_t *surface;
  cairo_t *cr;

  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
  cr = cairo_create (surface);
  swfdec_player_render (player, cr);
  cairo_destroy (cr);
  cairo_surface_write_to_png (surface, filename);
  cairo_surface_destroy (surface);
}

If you want to render the background color, too, look at how
swfdec-thumbnailer does it.

Cheers,
Benjamin


On Wed, Oct 8, 2008 at 12:58 PM, coder0815 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is it possible to save a frame from the rendered swf as png from the
> command line?
>
> I'm looking for such a tool.
>
> Thx,
> coder
>
> _______________________________________________
> Swfdec mailing list
> Swfdec@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/swfdec
>
_______________________________________________
Swfdec mailing list
Swfdec@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/swfdec

Reply via email to