cristian.muller
August 3rd, 2005, 06:47 AM
Hello,
how can i add to my VC++ project bitmaps with more than 256 color?
how can i add to my VC++ project bitmaps with more than 256 color?
|
Click to See Complete Forum and Search --> : Bitmap with more than 256 colors cristian.muller August 3rd, 2005, 06:47 AM Hello, how can i add to my VC++ project bitmaps with more than 256 color? Smasher/Devourer August 3rd, 2005, 10:26 PM Visual C++ (6.0; not sure about later versions) doesn't disallow you from including bitmaps with, say, 24 bits per pixel; it simply won't allow you to edit them in its resource editor, which is rather limited. So instead of creating a new bitmap resource and editing it within Visual C++, create your bitmap with some other image editing program, then import it as you would any other resource. cristian.muller August 4th, 2005, 04:31 AM okay,and then if it doesn't show me the size how could i position the image? Is there a way to not show me the image but to show me the size(in a blank rectangle) to make an idea where to put it. Thanks for the help! golanshahar August 12th, 2005, 11:40 AM as Smasher/Devourer said you cannot edit it, but to your next question the answer is yes it will let view it and position it in design time. to positon it do the following: 1) add your bitmap to resources ( say IDB_BITMAP1). 2) on your dialog box drag and drop the picture control. 3) right click on the Picture contorl->Properties in the "General Tab" under "Type" combobox choose Bitmap. 4) on the Image ComboBox ( that become enabled ) choose the ID of the bitmap you want to view ( in our case IDB_BITMAP1) 5) close the dialog and you will see your image on the dialog and you surely can postion it ;) Cheers andytim August 16th, 2005, 11:36 PM I think a good choice is to use a new class that use CWnd as base class,and within this new class,you can draw the DIB image within it,for drawing DIB image,I think the DIBLOOK sample (you can find it within MSDN) is a good start. Jack --------------------------------------------------------------------------------- XD++ MFC/C++ Flow/Diagram Library (Source Code Kit) -- http://www.********.net codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |