Re: [Gambas-user] Help with DrawingArea and class design

2013-01-26 Thread Benoît Minisini
Le 20/01/2013 19:26, Ulrich Hartmann a écrit : > ok, no problem, I'll wait for version 3.4 > > Just one question, is there a way (in 3.4's Paint class) to access each > pixel and get its color value, so that I can export the characters bytes > as a text-file (.c/ .h) based on the changed image, whe

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Ulrich Hartmann
ok, no problem, I'll wait for version 3.4 Just one question, is there a way (in 3.4's Paint class) to access each pixel and get its color value, so that I can export the characters bytes as a text-file (.c/ .h) based on the changed image, when I'm done drawing my characters/ images? Uli Am 20

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Benoît Minisini
Le 20/01/2013 16:03, Ulrich Hartmann a écrit : > ok, I tried to use Paint.ZoomImage but I get an error "unknown symbol in > class Paint" > > The Documentation states gb.qt4 is the class needed and I already have > gb.qt4 imported/ activated... > > I'm using Gambas 3.3.4 on Ubuntu > > Uli > Oops so

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Ulrich Hartmann
ok, I tried to use Paint.ZoomImage but I get an error "unknown symbol in class Paint" The Documentation states gb.qt4 is the class needed and I already have gb.qt4 imported/ activated... I'm using Gambas 3.3.4 on Ubuntu Uli Am 20.01.2013 15:30, schrieb Ulrich Hartmann: > Hi Benoît, > > thanks

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Ulrich Hartmann
Hi Benoît, thanks for the tip. I would then I guess have to create a Image object in the desired size (32x50 for example) in memory, black and white and use Paint.ZoomImage to display and edit it? Uli Am 20.01.2013 14:22, schrieb Benoît Minisini: > Le 20/01/2013 14:17, Ulrich Hartmann a écr

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Tobias Boege
On Sun, 20 Jan 2013, Ulrich Hartmann wrote: > Hi Tobi, > > yes this looks pretty much like what I want to do, just that I need > only pixel on or off and a way to export it as a C code byte array. > > I have a first version which allows me to define character size and > edit the character, but wh

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Benoît Minisini
Le 20/01/2013 14:17, Ulrich Hartmann a écrit : > Hi Tobi, > > yes this looks pretty much like what I want to do, just that I need only > pixel on or off and a way to export it as a C code byte array. > > I have a first version which allows me to define character size and edit > the character, but w

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Ulrich Hartmann
Hi Tobi, yes this looks pretty much like what I want to do, just that I need only pixel on or off and a way to export it as a C code byte array. I have a first version which allows me to define character size and edit the character, but when I choose character sizes bigger than 20x20 pixels

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-20 Thread Ulrich Hartmann
Hi Caveat, thanks for the code, this makes it easier for me to understand how I could solve this in a good way! Uli Am 17.01.2013 11:25, schrieb Caveat: > As a kind of getting started hint (not sure how far you got already), > I have some code I wrote a while back to draw hex values as binary

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-19 Thread Benoît Minisini
Le 17/01/2013 10:18, Ulrich Hartmann a écrit : > Hi all, > > I'm trying to create a class which can draw a pixel-font character on screen > and would let me edit the pixels (this is for my graphic lcd connected to an > arduino project). So I started playing around with the Paint class in Gambas3.

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-17 Thread Tobias Boege
On Thu, 17 Jan 2013, Ulrich Hartmann wrote: > Hi all, > > I'm trying to create a class which can draw a pixel-font character on screen > and would let me edit the pixels (this is for my graphic lcd connected to an > arduino project). So I started playing around with the Paint class in Gambas3. >

Re: [Gambas-user] Help with DrawingArea and class design

2013-01-17 Thread Caveat
As a kind of getting started hint (not sure how far you got already), I have some code I wrote a while back to draw hex values as binary using little red boxes to represent the 1 bits...in the good old days, you'd often get custom sprites or characters defined with a bunch of DATA statements an

[Gambas-user] Help with DrawingArea and class design

2013-01-17 Thread Ulrich Hartmann
Hi all, I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3. So here are my questions: If I wanted to create my ow