Re: What are the differences between Picture, StdPicture and IPicture?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> I will use (I'm testing) the GetPictureFromFile function for displaying png
> files. VB does'nt support this type and I don't use this picture as bmp or
> jpeg. Because this files have transparent field, some of them 32 bit icon
> pictures (what is it, alpha channel??, I'm very ignorant about graphic
> topics (to be more exact every topic)).

What you're referring to here is a 32-bit image with 4 channels; red, green, blue and alpha. The colour is made up of a
combination of red, green and blue and by combining various amounts of these primaries other colours can be created.
The Alpha channel then defines how transparent/opaque each pixel should be rendered, so any pixel with an alpha value of
0 will be completely transparent regardless of it's colour, where as pixels with an alpha value of 128 will be blended
50/50 with whatever background they're displayed on. By defining per-pixel alpha, icons can achieve effects such as
smooth edges and drop-shadows which properly blend over the background.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • Re: ImageList_Draw and icons with alpha channel
    ... The AND mask represents the "Alpha Channel". ... Where the pixel is marked as "White", ... Using masks works for all bit depths and allows you to ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Alphablending
    ... "paint" into the alpha channel.. ... Then you can use the rendered leaf as texture (with per pixel ... Its not diretcly a triangle, its a rectangle where only two sides are parallell and two are not. ... Barycentric coordinates, however, cannot. ...
    (alt.lang.asm)
  • Re: Alphablending
    ... A question more about those alpha channels, ... How can I do pixel shading in software, ... I used "virtual registers" and allocated real registers later.. ... Writing assembler is pain in the ass, if you dont have an assembler that is created to make it a blessed experience. ...
    (alt.lang.asm)
  • Re: AlphaBlending Question
    ... In order to save some calculations over a number of transparent png files, I was attempting to ignore the ... Interestingly enough, when I set the RGBs of zero alpha pixels to 0, the AlphaBlend function works fine. ... simply ignore the pre-multiplication if the alpha channel is 0, then I see the a white/grey color for those pixels. ... component and is simply combined with the inverse-alpha multiplication of the current pixel. ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Discarding pixels by Alpha, Stencil, Depth test
    ... Alpha testing comes only after the pixel fragment has been evaluated, ... means it is just as slow as processing the pixel. ... Stencil is more expensive than depth because it requires both reading & ...
    (microsoft.public.win32.programmer.directx.graphics)