Le 26/07/2018 à 18:13, Mário Luzeiro a écrit : > Hi JP, > Don't know about CAIRO, but a "for xy DrawRectangle" it is too heavy.
In fact "for xy DrawRectangle" is used only to convert the wxWidgets internal image format to the Cairo internal image format. The cost is low, because it is executed only once for a new bitmap. >>From what I remember from OPENGL_GAL the proper way to develop it would be by >>adding a new "draw element" using a new shader for draw a texture and by >>uploading the images data to GPU textures. > > I believe the GAL specialists will have a good understanding how to add that > feature. Yes, I think so.. > > Mário Luzeiro Thanks. > > ________________________________________ > From: Kicad-developers > <[email protected]> on behalf of > jp charras <[email protected]> > Sent: 26 July 2018 10:46:33 > To: Kicad Developers > Subject: [Kicad-developers] Patch to draw bitmaps in GAL canvases > > Hi, GAL gurus, > > I wrote this fix that add the code to draw bitmaps that can be used in page > layout editor and eeschema. > (Currently, this code is missing, and bitmaps used in page layout are shown > in legacy canvas, but > not in GAL canvases) > > I need a GAL guru to verify this patch (I am not a OpenGL or Cairo > specialist). > I do not want to break something. > > I am thinking the Cairo code is good. > In opengl canvas, I am using a "brute force" code to draw pixels as > rectangles. > I tried other ways, but there did not work. > > Thanks. > > -- > Jean-Pierre CHARRAS > -- Jean-Pierre CHARRAS _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

