hokemon
August 14th, 2002, 01:54 AM
I've manually contructed a bitmap object using SetPixel, but I want to do the same with an 8bpp bitmap object with an indexed palette. Does anyone know how this can be achieved in VB .net?
|
Click to See Complete Forum and Search --> : 8bpp Bitmaps with SetPixel hokemon August 14th, 2002, 01:54 AM I've manually contructed a bitmap object using SetPixel, but I want to do the same with an 8bpp bitmap object with an indexed palette. Does anyone know how this can be achieved in VB .net? tyris August 14th, 2002, 07:22 AM well i'm not sure to understand your question. you want to create a 8bpp bitmap ? if so, you can simply use this : Dim bmp = New Bitmap(s.Height, s.Height, img.PixelFormat) (if you want to take the PixelFormat of an existing image) or Dim bmp2 = New Bitmap(s.Height, s.Height, 8L) hope this helps codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |