Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Crook_EVB

@Crook_EVB
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to run the progresbar.......??
    C Crook_EVB

    First figure out a way to calculate your 'amount of data loaded' into a percentage value. Then add a progressbar onto your form and use this code in your loading sequence: ProgressBar1.Value = percent_data_loaded That's it.

    Visual Basic question css tutorial

  • Transparency by image in GDI
    C Crook_EVB

    Hi, I'm trying to use GDI to make a bitmap from a variety of other bitmaps. I'm new to vb2005 from vb6, and I've figured out how to bitblt from one hDC to another, and get the resulting graphics to appear. What I want to know is how to display a transparent bitmap, based on an alpha channel. I can use an alpha mask, but this doesn't seem to work for shades of grey. I keep seeing code snippets that set a global transparency for your image to be used, but I need transparency per pixel, and at least 255 shades so that it blends or completely covers the bitmap underneath. I'm going to be using multiple images that overlay to make a final image. I'm fine with the graphics side of it, I know how to make alpha layers for PNG's etc and how they work. I just can't code it in. This code is not complete - it's been cut out to show the basic method I'm using. I'm copying a variety of graphics into a 'master graphic', then stretching that result into the size I require on my form (so it will cope at any resized form) HDC4 is a small graphic to paste into HDC3 (my 'master image') - HDC4 is what I want to have transparency with HDC5 is the stretched target Dim PictSrc As New Bitmap(texture(1)) 'Picture that goes from file to memory Dim PictMem As Graphics = Graphics.FromImage(PictSrc) Dim HDC4 As IntPtr = PictMem.GetHdc BitBlt(HDC3, xpos, ypos, 100, 75, HDC4, 0, 0, &HEE0086) StretchBlt(HDC5, 0, 0, Ship_Systems_Graphic.Width, Ship_Systems_Graphic.Height, HDC3, 0, 0, 453, 192, &HCC0020) Any help is appreciated. www.c-digital-art.co.uk

    Visual Basic graphics performance help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups