LEADTOOLS Support
General
General FAQ
How do I load all the pages in an image instead of just the first?
#1
Posted
:
Friday, October 13, 2017 2:39:26 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
By default, the RasterCodecs.Load() call only loads the first page in an image. This behaviour can be modified to load all pages in a RasterImage by setting the value of the CodecsLoadOptions.AllPages property to true.
C#Code:RasterCodecs codecs = new RasterCodecs();
codecs.Options.Load.AllPages = true;
JavaCode:
RasterCodecs codecs = new RasterCodecs();
codecs.getOptions().getLoad().setAllPages(true);
Note for high-resolution images memory consumption will increase based on the number of pages in the image loaded.
https://www.leadtools.com/help/sdk/dh/co/codecsloadoptions-allpages.htmlEdited by moderator Wednesday, December 27, 2023 1:17:36 PM(UTC)
| Reason: updated
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
General FAQ
How do I load all the pages in an image instead of just the first?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.