Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance for the given FITAG that contains
 /// a palette.
 /// </summary>
 /// <param name="tag">The tag containing the palette.</param>
 /// <exception cref="ArgumentNullException"><paramref name="tag"/> is null.</exception>
 /// <exception cref="ArgumentException"><paramref name="tag"/> is not
 /// <see cref="FREE_IMAGE_MDTYPE.FIDT_PALETTE"/>.</exception>
 public Palette(FITAG tag)
     : base(FreeImage.GetTagValue(tag), (int)FreeImage.GetTagCount(tag))
 {
     if (FreeImage.GetTagType(tag) != FREE_IMAGE_MDTYPE.FIDT_PALETTE)
     {
         throw new ArgumentException("tag");
     }
 }