开发者

Why i cant use bitmap class on dll class?

For example:

Public Class Class1
   Public Sub Some()
       Dim Image As New Bitmap("C:\image.bmp")
   End Function
End Class

Displays an error on Bitmap which says开发者_运维问答 "Name Bitmap is not declared".

Some solution? is impossible use Bitmap class or another class?


Are you referencing the System.Drawing.dll assembly and importing the System.Drawing namespace?

Right-click on the Bitmap identifier and see if Visual Studio asks you to add an import for it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜