Re: Modifying A Pixel in a Picture's color
- From: PulsarSL@xxxxxxxxx
- Date: 15 Jan 2006 14:47:31 -0800
Thanks for all the help everyone, I've switched over from using PSet()
to the SetPixel API now. BTW, very nice site Mike.
Thanks
Pulsar
Mike D Sutton wrote:
> > Also if you want your code to work so that the colours are exactly what
> you
> > want on all computers, including computers that are running at less than
> > full colour depth, then you won't be able to use the VB picture box anyway
> > and you'll have to use the various API methods. This is because when you
> > load a picture into a VB picture box on a computer running at 16 bit
> colour
> > depth (or less) then the pixel colours will not be exactly the same as the
> > pixel colours of the original picture. Also, when you set a pixel to a
> > specific colour (using either the VB Pset method or the alternative API
> > SetPixel method) you will not always get exactly the colour you asked for.
> > Windows does all this stuff very well though, so that to the naked eye the
> > picture looks virtually the same as the original - but it isnt exactly the
> > same.
>
> Yup, if this is a concern then Device Independent Bitmaps (DIBs) are the way
> to go which work independently of the display depth. There's also an
> article about using them in VB on my site should you need it.
> Hope this helps,
>
> Mike
>
>
> - Microsoft Visual Basic MVP -
> E-Mail: EDais@xxxxxxxx
> WWW: Http://EDais.mvps.org/
.
- References:
- Modifying A Pixel in a Picture's color
- From: PulsarSL
- Re: Modifying A Pixel in a Picture's color
- From: MikeD
- Re: Modifying A Pixel in a Picture's color
- From: PulsarSL
- Re: Modifying A Pixel in a Picture's color
- From: Mike Williams
- Re: Modifying A Pixel in a Picture's color
- From: Mike D Sutton
- Modifying A Pixel in a Picture's color
- Prev by Date: Re: Scrool Wheel not working
- Next by Date: Re: Click Button in IE without a name
- Previous by thread: Re: Modifying A Pixel in a Picture's color
- Next by thread: How big is Common Dialog?
- Index(es):