public class ImageData
inherits System.Drawing.Image
end class
when i write it, a error show : "Class 'ImageData' must declare a 'Sub New' because its base class 'Image' does not have an accessible 'Sub New' that can be called with no arguments."
so, i wrote it then :
public class ImageData
inherits System.Drawing.Image
Sub New()
end sub
end class
then, a error next: "First statement of this 'Sub New' must be a call to 'MyBase.New' or 'MyClass.New' because base class 'System.Drawing.Image' of 'ImageData' does not have an accessible 'Sub New' that can be called with no arguments."
then, i continue write :
public class ImageData
inherits System.Drawing.Image
Sub New()
MyBase.New()
end sub
end class
a error next again : "Overload resolution failed because no 'New' is accessible."
i don't understand it

cannot inhertis Image class ??????????????????????
Paul Rocca
It can not be inherited. The constructor (Sub New) can only be inherited by classes in the same assembly because it is declared as friend.
http://msdn2.microsoft.com/en-US/library/08w05ey2.aspx
Pablo Rincon
Write what You can not inherit Image class.
Maybe you can inherit from Bitmap instead, that inherits from Image.
abuswell