Nov 7th, 2002, 05:26 AM
#1
Thread Starter
Hyperactive Member
[SOLVED] Image display question
Hello folks,
Please take a look at the image below, how can i get the white corners transparent?
Thanks in advance!
Attached Images
Last edited by phrozeman; Nov 7th, 2002 at 05:41 AM .
There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me
Nov 7th, 2002, 05:28 AM
#2
Banned
Nov 7th, 2002, 05:32 AM
#3
Thread Starter
Hyperactive Member
i know how to get them transparent in a Imaging application, but after using them in vb they aint transparent anymore
I seen a piece of code before, but i can't find it
There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me
Nov 7th, 2002, 05:41 AM
#4
Thread Starter
Hyperactive Member
VB Code:
Private Declare Function TransparentBlt Lib "msimg32.dll" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal crTransparent As Long) As Boolean
Private Sub Form_Load()
'KPD-Team 1999
'URL: [url]http://www.allapi.net/[/url]
Picture1.AutoSize = True
'API uses pixels
Picture1.ScaleMode = vbPixels
Picture2.ScaleMode = vbPixels
End Sub
Private Sub Picture2_Paint()
DoEvents
TransparentBlt Picture2.hdc, 0, 0, Picture2.ScaleWidth, Picture2.ScaleHeight, Picture1.hdc, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, vbWhite
End Sub
Found an API for it
There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width