开发者

Why i cant use bitmap class on dll class?

开发者 https://www.devze.com 2022-12-15 02:52 出处:网络
For example: Public Class Class1 Public Sub Some() Dim Image As New Bitmap(\"C:\\image.bmp\") End Function

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

精彩评论

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