Click here to Skip to main content
16,013,747 members
Home / Discussions / C#
   

C#

 
Generalabout UserControl Load Event having activeX control Pin
pig123414-Oct-04 16:13
pig123414-Oct-04 16:13 
Generalnavigating to diff location in same page (web browse control) Pin
vista2714-Oct-04 11:23
vista2714-Oct-04 11:23 
GeneralRe: navigating to diff location in same page (web browse control) Pin
J4amieC14-Oct-04 22:27
J4amieC14-Oct-04 22:27 
Generalc-project Pin
pranshu dave14-Oct-04 9:00
pranshu dave14-Oct-04 9:00 
GeneralRe: c-project Pin
Heath Stewart14-Oct-04 9:30
protectorHeath Stewart14-Oct-04 9:30 
GeneralRe: c-project Pin
Steve Maier14-Oct-04 9:31
professionalSteve Maier14-Oct-04 9:31 
GeneralRe: c-project Pin
Christian Graus14-Oct-04 9:48
protectorChristian Graus14-Oct-04 9:48 
Questionhelp....How to create a 48bpp bitmap ? Pin
Kiran Satish14-Oct-04 7:43
Kiran Satish14-Oct-04 7:43 
Hi all,

i am having 12 bit image data in a 2D array. How can i create a 48 bpp bitmap image using actually 12 bits only for pixel color information and the remaining 4 bits to be padded. Should i have to define any color pallete for it in the header? or can i directly enter the pixel values for each Red,Green and Blue by copying the lower byte value in the first byte and the MSB value in the second byte?..IF not...how can i create a Palette. How can i store the pixel color values for each pixel (R,G,B).

At present I am using the following command to create a 48 bpp bitmap

Bitmap b = new Bitmap(Width,Height,PixelFormat.Format48bppRgb);

how can i access the Bitmap byte by byte right from the beginning (not from the data [using Scan0]).. I mean the header.

any ideas or suggestions r appreciated...

thanks in advance,

Suman
AnswerRe: help....How to create a 48bpp bitmap ? Pin
yoaz14-Oct-04 8:55
yoaz14-Oct-04 8:55 
AnswerRe: help....How to create a 48bpp bitmap ? Pin
Heath Stewart14-Oct-04 9:35
protectorHeath Stewart14-Oct-04 9:35 
AnswerRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus14-Oct-04 9:55
protectorChristian Graus14-Oct-04 9:55 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish14-Oct-04 12:31
Kiran Satish14-Oct-04 12:31 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 9:55
protectorChristian Graus17-Oct-04 9:55 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:03
Kiran Satish17-Oct-04 10:03 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish14-Oct-04 22:01
Kiran Satish14-Oct-04 22:01 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 9:56
protectorChristian Graus17-Oct-04 9:56 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:08
Kiran Satish17-Oct-04 10:08 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 10:12
protectorChristian Graus17-Oct-04 10:12 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:25
Kiran Satish17-Oct-04 10:25 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 10:35
protectorChristian Graus17-Oct-04 10:35 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:48
Kiran Satish17-Oct-04 10:48 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 10:59
protectorChristian Graus17-Oct-04 10:59 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:53
Kiran Satish17-Oct-04 10:53 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 11:01
protectorChristian Graus17-Oct-04 11:01 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 11:09
Kiran Satish17-Oct-04 11:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.