Old 14th April 2002, 16:57   #1
Bizzeh
Forum Pirate
Beta Team
 
Bizzeh's Avatar
 
Join Date: Oct 2001
Posts: 2,032
VB6 Help Needed

code:
Option Explicit

Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC 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 dwRop As Long) As Long

Public sFile As String

Private WithEvents PNG As cPNG


Private Sub Command1_Click()

CommonDialog1.Filter = "PNG|*.png"
CommonDialog1.ShowOpen
sFile = CommonDialog1.FileName

PNG.LoadPNGFile (sFile)
PNG.DrawToDC Picture1.hDC, 0, 0
Picture1.Refresh
End Sub


Private Sub Form_Load()
Set PNG = New cPNG

End Sub




how do i set and image box to show what has just been brought in to the picture box so i can get it to save???
Bizzeh is offline   Reply With Quote
Old 14th April 2002, 19:59   #2
eleet-2k2
Forum King
 
eleet-2k2's Avatar
 
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
What about:

Image1.Picture = [pic file here that you opened]

"Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!"
See what I'm listening too.
eleet-2k2 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump