• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: handling of huge bitmaps, incremental saving?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handling of huge bitmaps, incremental saving?


  • Subject: Re: handling of huge bitmaps, incremental saving?
  • From: Marcel Weiher <email@hidden>
  • Date: Thu, 1 Jan 2004 21:23:34 +0000

Cocoa does not handle saving as strips (or tiles) at this time, but the TIFF format does and so does the tifflib. You will probably have to use that directly. It's not as comfy as Cocoa, but pretty straightforward.

Marcel

On 30 Dec 2003, at 10:56, Sven Hoffmann wrote:

thanks for the note, nicko, but it leaves me with a few questions.

On Tuesday, December 30, 2003, at 12:10 PM, Nicko van Someren wrote:

Processing drawings in strips is perfectly normal (postscript printers do it all the time) and a good way to deal with your situation.


what about the saving as tiff? will cocoa, or better a machine with a usual 256/512MB RAM, be able to handle
2 bitmap represantations (the on a drew into plus the tiff) each of a size of agigabyte?
or can i do something like breaking the saving into strips as well, by using one smaller bitmap,
draw into that, save it, draw into it, save it and so on?

You should be able to do it just by for each strip setting an appropriate graphics context, translation offset and scaling factors before drawing into the bitmap using your existing drawRect: code. If you have millions of points you'd do well to make sure that the drawing code takes note of the rectangle passed in and ignores objects outside the drawn area.


the draing part seems sorted, just the saving is making me headaches, but i guess i sshould just try and see...

sven

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Encryption
  • Next by Date: Re: Encryption
  • Previous by thread: Re: Encryption
  • Next by thread: Re: handling of huge bitmaps, incremental saving?
  • Index(es):
    • Date
    • Thread