Welcome, Guest. Please login or register.

Author Topic: colour pens question..  (Read 3836 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show all replies
Re: colour pens question..
« on: February 19, 2012, 11:58:14 AM »
Quote from: Minuous;680988
I have a somewhat related question...
 Is there a limit of 256 pens supported by OS3.9? Because it seems that AmiDock is allocating most of those pens, and therefore my program can't allocate its pens. This happens even on eg. a 16-bit screen, where there should presumably be 65536 pens. The pen number is a LONG, but I have never seen a pen number higher than 255. The graphics.library autodoc doesn't say how many pens are supported.


Number of pens is limited to 256. In theory system could support more pens than that but would need expanding other structures as well and managing thousands of pens is not practical.

Quote

Is there some kind of workaround for this limitation that will allow my program to access pens beyond the first 256 in a cooperative way? Thanks.


If you have CGX 4 you can use true colour rendering to offscreen bitmaps.
My Amigas: A500, Mac Mini and PowerBook