Fast, Pixel Precision 2D Drawing API for a graphics application?

I would like to create a cross-platform drawing program. The only requirement for writing my application is that I have pixel level accuracy over the canvas. For example, I want to write my own line drawing algorithm, and not rely on someone from elses. I don't want any form of anti-aliasing (again, pixel level control is required.) I would like users to interact on the screen to be fast and responsive (awaiting my ability to write fast algorithms.)

Ideally, I would like to write this in Python, or perhaps as a second variant of Java. The ability to easily make the final cross-platform application is required. If necessary, I will transfer various APIs to different OSs if I can write an abstraction layer around them. Any ideas?

addendum: I need the ability to draw on the screen. Drawing in a file, I understood.

+3
source share
5 answers

This week I put together some slides and demo code for working with 2D graphics using OpenGL from python using the pinglet library. Here you can see my stuff: http://tartley.com/?p=378

( , python) 1000 , , 50 .

, , , , Linux Mac ( , Pypy), - .

: : http://tartley.com/?cat=27 p >

+3

Pyglet Python . OpenGL, - API. . , , . , PIL ( Python) Cairo, - .

Pyglet PyOpenGL, Pyglet OpenGL - .

Pyglet. - , OpenGL OS X, , , , . subversion. (Splatterboard.py trunk - , .) svn, .zip . , .

+2

, Flash, Haxe, . Haxe , . Neko, (, Java, Ruby's, Parrot...) Mac, Windows Linux. Flash, , . http://haxe.org/

+1

QT Canvas QPainter , ++. -.

python QT, .

Java, SWT, , . Swing Canvas . AWT, , , .

0

wxPython

, , , , pyglet agg.

, .

0

Source: https://habr.com/ru/post/1696902/


All Articles