Graphics Reference, draw image

General

Mokona

1 year ago

Hello,

it seems there's an error in the documentation for drawImage.

https://gamebuino.com/academy/reference/graphics-drawimage


The second function prototype is : void Graphics::drawImage( int16_t x , int16_t y , Image img , int16_t source_x , int16_t source_y , int16_t source_width , int16_t source_height);


But after the compiler rejected it, I looked at Graphics.h, where the prototypes are :


    virtual void drawImage(int16_t x, int16_t y, Image& img);

    virtual void drawImage(int16_t x, int16_t y, Image& img, int16_t w2, int16_t h2);



Sorunome

NEW 1 year ago

You are probably using an older version of the META library. Make sure you are on the latest, currently 1.1.0!

Mokona

NEW 1 year ago

Strange. Arduino IDE says I'm up to date... I will dig a bit more.



Mokona

NEW 1 year ago

There's something weird with the installation.

I have to Gamebuino META package (well, one is META, the other is Meta).


The most recent one, which is up to date, as the version selector enabled and I can switch version with it.

The older one, version 1.0.1, as no version selector. As packaging changed after 1.0.1 ?



Mokona

1 year ago

After looking at the files on the drive... it seems an update was made with changing "Meta" to "META" in the name. When living in a case sensitive world as I do (or at least as my operating systems does)... it causes nasty problems.


So, easy to fix now. I'll remove the "Meta" version by hand.


Mokona

NEW 1 year ago

Mokona Mokona

After looking at the files on the drive... it seems an update was made with changing "Meta" to "META" in the name. When living in a case sensitive world as I do (or at least as my operating systems does)... it causes nasty problems.


So, easy to fix now. I'll remove the "Meta" version by hand.