示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public void ThumbnailsRemoveAll()
 {
     Itdb_Artwork.itdb_artwork_remove_thumbnails(Handle);
 }
示例#5
0
 public Pixbuf GetPixbuf(Device device, int width, int height)
 {
     return(new Pixbuf(Itdb_Artwork.itdb_artwork_get_pixbuf(device.Handle, Handle, width, height)));
 }
示例#6
0
 protected override void Destroy()
 {
     Itdb_Artwork.itdb_artwork_free(Handle);
 }
示例#7
0
 public Artwork(Artwork other) : base(Itdb_Artwork.itdb_artwork_duplicate(other.Handle), false)
 {
 }
示例#8
0
 public Artwork() : base(Itdb_Artwork.itdb_artwork_new(), false)
 {
 }