Powerbasic Museum 2020-B

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Chris Chancellor on December 23, 2018, 03:50:26 PM

Title: Equivalent PB graphics statements
Post by: Chris Chancellor on December 23, 2018, 03:50:26 PM
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 (http://www.garybeene.com/power/pb-tutor-graphics.htm)


Alternatively can we use OpenGL statements ?

Title: Re: Equivalent PB graphics statements
Post by: José Roca on December 23, 2018, 05:16:19 PM
There are no equivalents to PB GRAPHIC statements in any language. They are wrappers on top of GDI. Therefore use GDI or GDI+.
Title: Re: Equivalent PB graphics statements
Post by: Chris Chancellor on December 23, 2018, 07:28:28 PM
Thanxx a lot, Jose

i will try to convert them to GDI+  this xmas
Title: Re: Equivalent PB graphics statements
Post by: Charles Pegge on December 24, 2018, 12:49:08 AM
Hi Chris,

It may be useful to look at:

/projectsB/GDIPlus/
Title: Re: Equivalent PB graphics statements
Post by: Chris Chancellor on December 24, 2018, 02:42:36 PM
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