зеркало из https://github.com/mono/exiv2-sharp.git
_get_previewImage ()
2008-11-27 Stephane Delcroix <sdelcroix@novell.com> * exiv2-previewmanager.h|cpp: _get_previewImage () svn path=/trunk/exiv2-sharp/; revision=120178
This commit is contained in:
Родитель
eee84123fb
Коммит
cc88b15179
|
@ -1,3 +1,7 @@
|
|||
2008-11-27 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* exiv2-previewmanager.h|cpp: _get_previewImage ()
|
||||
|
||||
2008-11-27 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* exiv2-previewimage.h|cpp: map Exiv2::PreviewImage
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "exiv2-previewmanager.h"
|
||||
#include "exiv2-previewmanager-private.h"
|
||||
#include "exiv2-previewproperties-private.h"
|
||||
#include "exiv2-previewimage-private.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
G_DEFINE_TYPE (Exiv2PreviewManager, exiv2_previewmanager, G_TYPE_OBJECT);
|
||||
|
@ -83,4 +84,17 @@ exiv2_previewmanager_get_previewProperties (Exiv2PreviewManager *self)
|
|||
|
||||
}
|
||||
|
||||
Exiv2PreviewImage*
|
||||
exiv2_previewmanager_get_previewImage (Exiv2PreviewManager *self, Exiv2PreviewProperties *prop)
|
||||
{
|
||||
g_return_val_if_fail (EXIV2_IS_PREVIEWMANAGER (self), NULL);
|
||||
|
||||
Exiv2PreviewImage *preview;
|
||||
preview = EXIV2_PREVIEWIMAGE (g_object_new (EXIV2_TYPE_PREVIEWIMAGE, NULL));
|
||||
const Exiv2::PreviewProperties pprop = *(prop->priv->prop);
|
||||
preview->priv->prev = &(self->priv->manager->getPreviewImage (pprop));
|
||||
|
||||
return preview;
|
||||
}
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include <glib-object.h>
|
||||
#include "exiv2-image.h"
|
||||
#include "exiv2-previewimage.h"
|
||||
#include "exiv2-previewproperties.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -65,6 +67,7 @@ GType exiv2_previewmanager_get_type (void);
|
|||
|
||||
Exiv2PreviewManager* exiv2_previewmanager_new (Exiv2Image *image);
|
||||
GList* exiv2_previewmanager_get_previewProperties (Exiv2PreviewManager *self);
|
||||
Exiv2PreviewImage* exiv2_previewmanager_get_previewImage (Exiv2PreviewManager *self, Exiv2PreviewProperties *prop);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче