comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: BMP/JPG/GIF library in Ada?
Date: Thu, 19 Feb 2004 19:43:15 GMT
Date: 2004-02-19T19:43:15+00:00	[thread overview]
Message-ID: <nl8Zb.79279$uV3.536494@attbi_s51> (raw)
In-Reply-To: MPG.1a9f237d4b339fba9896bc@news.able.es

>>     type Triple_DIBitmap_Type (Height, Width : Claw.Int) is ...
>Similar. I've chosen a constrained representation inheriting from Controlled.
  Interesting.  Claw's DIBitmap types start at Root_DIBitmap_Type, which
is abstract tagged, but not Controlled.  Why do you inherit from Controlled?
Is there something special you do for initialization or finalization?

>  procedure Create (
>     This : out Object; Width : in Positive; Height : in Positive);
  Why a Create procedure instead of just a declaration (as above)?  This
implies you must be using heap allocation since you don't know the
Height or Width when you declare an instance of Object, right?

>     procedure Triple_DIBitmap_Type_Output (
>         Stream : access Ada.Streams.Root_Stream_Type'class;
>         Item   : in Triple_DIBitmap_Type);
>     for Triple_DIBitmap_Type'Write use Triple_DIBitmap_Type_Write;
>  function Get_stream (This : in Object)
>     return Ada.Streams.Stream_element_array;
  Why this instead of the 'Output mechanism plus a predefined
"new Ada.Streams.Root_Stream_Type" that marshalls into an array?

>Claw is Windows specific, it isn't?
  Yes.  Claw.Bitmaps includes calls to Windows' routines for painting etc
as well as just the data structure handling.

  If this is for web serving, I'm guessing you intend to dynamically draw
on a bmp internally, since that's simple, and then convert to gif or jpg
to transmit more reasonably sized data, right?



  reply	other threads:[~2004-02-19 19:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 20:40 BMP/JPG/GIF library in Ada? Brian Catlin
2004-02-16 21:32 ` Randy Brukardt
2004-02-16 22:59 ` Gautier Write-only
2004-02-17 17:53   ` Brian Catlin
2004-02-18 19:09     ` Jano
2004-02-18 20:20       ` tmoran
2004-02-19 18:48         ` Jano
2004-02-19 19:43           ` tmoran [this message]
2004-02-19 23:50             ` Jano
2004-02-20 20:20               ` Randy Brukardt
2004-02-20 21:10                 ` Jeff C,
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox