01-25-2006 11:01 AM
01-26-2006 05:33 AM
01-26-2006 06:00 AM
Adam,
Details as follows: CVI 6.0, Compaq PC Windows 2000, Display set as 1280x1024, 24-bit true colour
I have a panel with a picture control within it, and when I load the BMP or PCX from within the 'edit picture' controls, this is when the colours are wrong, as if the colour pallet is wrong. The picture is still wrong when I exit the 'edit control' and view the picture withint he panel.
The pictures view correctly when opened using MS photo editor.
many thanks,
Steve Booth
01-26-2006 08:52 AM
Steve,
You still haven't said what was actually wrong with the colours you are seeing. (Could you throw in a screen shot of before and after (or correct and 'wrong') pictures for me please.)
Thanx
AdamB
01-27-2006 04:42 AM
Adam,
test1.jpg is the original picture, all looks OK in any viewer
01-27-2006 05:24 AM - edited 01-27-2006 05:24 AM
Hi Steve,
From the look of the pictures you have sent it's possible that the problem lies with the scaling that has been applied to the pictures when they are loaded. I would firstly suggest that you try shrinking a BMP in a different program (say Paintbrush and MS picture viewer) to see if the scaling has the same effect as CVI.
Have you got the control to size to the picture or the control to size the picture down?
Also what type of BMP, PCX are they? I'm assuming the bipmaps are 24bit (as is the display, but what bit accuracy have you set the picture control to?)
I Have been unable to find any specific problems with CVI 6.0 and picture controls so I can only assume it's something to do with the setup of you code.
Is there any chance you can attach your code an an example bmp (or PCX) so that I can try and recreate your problem here on my computer. From there I will will be better equiped to answer your question.
Many thanx
AdamB
Message Edited by AdamB on 01-27-2006 05:26 AM
01-27-2006 09:35 AM
01-27-2006 12:12 PM
01-30-2006 05:04 AM
Adam,
Many thanks for your reply. I have the panel set so that the BMP will size to the control.
I have not written any code to support this yet. The image I sent you of the panel is a screen shot of the panel, only just created, and the image loaded via the panel control.
I am still looking for a PC-setup or CVI-setup answer, as my collegues PC displays the image correctly.
Steve
02-01-2006 04:45 AM