NP_OPTION_DRAW_SCALE <1.0 on grayscale gives color

Post Reply
mikeincinci
Posts: 22
Joined: Tue Aug 14, 2007 7:26 am

NP_OPTION_DRAW_SCALE <1.0 on grayscale gives color

Post by mikeincinci »

NP_OPTION_DRAW_SCALE=0.8 gives me a weird color image instead of grayscale. When returned to 1.0, the image is gray. VB6 code is below. I am using SDK Public Beta - Version 1.1.032 beta 01

oCamera.SetOption NP_OPTION_VIDEO_TYPE, NP_ONE
oCamera.SetOption NP_OPTION_FRAME_DECIMATION, NP_THREE
oCamera.SetOption NP_OPTION_DRAW_SCALE, 0.8

When "oCamera.SetOption NP_OPTION_DRAW_SCALE, 1.0", image returned is gray.
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: NP_OPTION_DRAW_SCALE <1.0 on grayscale gives c

Post by Birch »

The down-sampled greyscale works in 32 bit screen color modes but looks like it may have issues in (at least) 16 bit mode. We will look into this.

Just to verify, what is the bit depth you are running at on your system?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: NP_OPTION_DRAW_SCALE <1.0 on grayscale gives c

Post by beckdo »

Thanks for the heads-up on this issue. I've submitted a fix. The next release is scheduled for a few days from now and will include the fix. Send support an email if you need it before then.
mikeincinci
Posts: 22
Joined: Tue Aug 14, 2007 7:26 am

Re: NP_OPTION_DRAW_SCALE <1.0 on grayscale gives c

Post by mikeincinci »

I am running 16-bit 1280 x 800 on Intel Mobile 945G Express Chipset. I changed to 32-bit color and the image is gray!
Thanks.
Mike
Post Reply