# Re: 请问如何把图画(BMP)直接读进记忆体里??

Posted by cww on July 09, 1998 at 11:39:54:

In Reply to: 请问如何把图画(BMP)直接读进记忆体里?? posted by RPG之鬼 on July 09, 1998 at 09:12:35:

可以不用PictureBox物件，但至少用StdPicture物件

Private pic1 as New StdPicture

Set pic1 = LoadPicture("e:\girl.gif")
hTempDC = CreateCompatibleDC(Me.hdc)
Call SelectObject(hTempDC, pic1.Handle)
Call BitBlt(Picture2.hdc, 0, 0, Picture2.Width, Picture2.Height, hTempDC, 0, 0, &HCC0020)
注:您可以先真正了解一下这些绘图API的动作，

Follow Ups: