Instantiating Image objects OK?

  • Thread starter Thread starter active
  • Start date Start date
A

active

Because of an example I followed I've been instantiating Image objects. Now
I notice that the documentation says the Image class is an abstract base
class.

Things seem to be working! Is the documentation wrong (it also says abstract
classes cannot be instantiated)?

Should I be using Bitmap instead?

Is there a difference between Abstract class and Abstract base class?



Thanks,

Cal
 
active said:
Because of an example I followed I've been instantiating Image
objects. Now I notice that the documentation says the Image class is
an abstract base class.

Things seem to be working! Is the documentation wrong (it also says
abstract classes cannot be instantiated)?

Does not work for me:

dim img as new image
Should I be using Bitmap instead?

yes, you can
 
* " active said:
Because of an example I followed I've been instantiating Image objects. Now
I notice that the documentation says the Image class is an abstract base
class.

Things seem to be working! Is the documentation wrong (it also says abstract
classes cannot be instantiated)?

Should I be using Bitmap instead?

Is there a difference between Abstract class and Abstract base class?

Post the code you use to /instantiate/ the image class. Maybe you are
only declaring a variable of type 'Image' and not instantiating this
class directly.
 
Thanks to both. I checked to see if Herfried was looking over my shoulder -
he was exactly right - I was just declaring a variable!

Cal
 
Back
Top