how can i read a file to StdPicture?
and draw it on memory HDC?

Public Sub LoadImage(strPath As String)
    Dim myPic As New StdPicture
    Set myPic = LoadPicture(strPath)

    NewImage myPic.Width, myPic.Height
    BitBlt MemoryHDC, 0, 0, Width, Height, myPic.Handle, 0, 0, SRCCOPY 'i get only a black background color
End Sub
rproffitt commented: Topic doesn't seem to match the questions. +17

Again, until you move to a current Visual Basic we have to lean on prior discussions.

  1. Google "loadpicture vb6" and plenty of examples that work.
  2. To draw on that picture, example at https://www.vbforums.com/showthread.php?893506-Draw-on-StdPicture-objects
  3. There will be limitations such as the Bitmap type pictures only.
  4. There are few of us with access to VB6. While I wrote a lot of code back then, I no longer have the VB6 environment up and running.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.