[Gambas-user] Help with DrawingArea and class design

Ulrich Hartmann uli at ...3067...
Sun Jan 20 16:03:14 CET 2013


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 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 é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 when I choose character sizes bigger than 20x20
>>> pixels it takes quite a while to initially draw it (editing works fine
>>> though).
>>>
>>> I currently use a picturebox for each pixel representation so I guess it
>>> takes a while to initialize all those PictureBoxes...
>>>
>>> Thanks
>>>
>>> Uli
>>>
>>>
>> Use Paint.ZoomImage() method inside a DrawingArea!
>>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_123012
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list