• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

Equivalent PB graphics statements

Started by Chris Chancellor, December 23, 2018, 03:50:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chris Chancellor

Hello Charles

i'm interested in translating  my PB graphics programs to O2 and wonder what are the equivalent
statements in O2 for commands such as


    GRAPHIC ATTACH - designates the graphic target
    GRAPHIC DETACH - removes current target from use with GRAPHIC statements
    GRAPHIC Arc         GRAPHIC Pie
    GRAPHIC Box         GRAPHIC Point (pixel)
    GRAPHIC Ellipse     GRAPHIC Polygon
    GRAPHIC Line        GRAPHIC Polyline


please refer to
http://www.garybeene.com/power/pb-tutor-graphics.htm


Alternatively can we use OpenGL statements ?


José Roca

There are no equivalents to PB GRAPHIC statements in any language. They are wrappers on top of GDI. Therefore use GDI or GDI+.

Chris Chancellor

Thanxx a lot, Jose

i will try to convert them to GDI+  this xmas

Charles Pegge

Hi Chris,

It may be useful to look at:

/projectsB/GDIPlus/

Chris Chancellor

Thanxx a lot, Charles

quite a good resource for graphics, anyways my graphics are mainly very basic ones
so these are more than sufficient to start with