public bool ThumbnailSet(IntPtr image_data, int image_data_len, int rotation) { IntPtr gerror; bool res = Itdb_Artwork.itdb_artwork_set_thumbnail_from_data(Handle, image_data, image_data_len, rotation, out gerror); if (gerror != IntPtr.Zero) { throw new GException(gerror); } return(res); }
public bool ThumbnailSet(Pixbuf pixbuf, int rotation) { IntPtr gerror; bool res = Itdb_Artwork.itdb_artwork_set_thumbnail_from_pixbuf(Handle, pixbuf.Handle, rotation, out gerror); if (gerror != IntPtr.Zero) { throw new GException(gerror); } return(res); }
public bool ThumbnailSet(string filename, int rotation) { IntPtr gerror; bool res = Itdb_Artwork.itdb_artwork_set_thumbnail(Handle, filename, rotation, out gerror); if (gerror != IntPtr.Zero) { throw new GException(gerror); } return(res); }
public void ThumbnailsRemoveAll() { Itdb_Artwork.itdb_artwork_remove_thumbnails(Handle); }
public Pixbuf GetPixbuf(Device device, int width, int height) { return(new Pixbuf(Itdb_Artwork.itdb_artwork_get_pixbuf(device.Handle, Handle, width, height))); }
protected override void Destroy() { Itdb_Artwork.itdb_artwork_free(Handle); }
public Artwork(Artwork other) : base(Itdb_Artwork.itdb_artwork_duplicate(other.Handle), false) { }
public Artwork() : base(Itdb_Artwork.itdb_artwork_new(), false) { }