Bitmap.Palette : Bitmap « System.Drawing « VB.Net by API






Bitmap.Palette

  
Imports System
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Text
Imports System.Drawing.Imaging

Public Class MainClass

  Shared Sub Main()
    Dim cp As ColorPalette
    Dim bmp As Bitmap = New Bitmap("figure2.bmp")

    cp = bmp.Palette
    Dim c As Color
    For Each c In cp.Entries
      Console.WriteLine( c.ToString())
    Next
  End Sub
  
End Class

   
    
  








Related examples in the same category

1.New Bitmap
2.New Bitmap(Int w, Int y)
3.New Bitmap(String fileName)
4.Bitmap.FromFile(String fileName)
5.Bitmap.GetPixel
6.Bitmap.GetPixel(Int x, Int y)
7.Bitmap.Height
8.Bitmap.MakeTransparent
9.Bitmap.PhysicalDimension
10.Bitmap.PixelFormat
11.Bitmap.Save(String fileName, ImageFormat if)
12.Bitmap.SetPixel(Int x, Int y, Color clr)
13.Bitmap.SetResolution(Single h, Single v)
14.Bitmap.VerticalResolution
15.Bitmap.Width