BufferedBitmap not working in Visual Studio Code

Hi,

I am currently developing a DataField that requires the use of BufferedBitmap. Here is a part of the code:

I have an error when I run the program :

Do you have an idea ?