XimageCollétion

Vue de l’ensemble

‘XImageCollection’ est une classe dans Aspose.PDF FOSS pour .NET. Inhérité de: ‘ImagesCollections’.

Collection d’image XObjects sur une page, avec des accessoires de type XImage et les aides d’édition.

Cette classe fournit 21 méthodes pour travailler avec des objets XImageCollection dans les programmes .NET. Les méthodologies disponibles comprennent: ‘Add’, ‘Clear’ , ‘Contenus’, CopyTo', 'Delete' ; 'GetByName' et 'Enumerator' : 'DimageNamen'; 'Remove' ou 'Replace'. Tous les membres publics sont accessibles à n'importe quelle application .Net après l'installation de la version Aspose.PDF FOSS pour le package .net. Propriétés : Count’, ‘‘IsReadOnly’,‘‘IsSynchronized’,`Names’,‘SymcRoot’.

Propriétés

NameTypeAccessDescription
CountintReadNumber of images in the collection.
IsReadOnlyboolReadWhether the collection is read-only.
IsSynchronizedboolReadWhether the collection is thread-safe.
SyncRootobjectReadSynchronization root for IsSynchronized; returns this collection.
Namesstring[]ReadThe resource names of every image in the collection.

méthodes

SignatureDescription
Add(image: XImage)Append an existing XImage to the collection and return its assigned resource name.
Add(image: Stream)Append an image from a stream; returns its assigned resource name.
Add(image: Stream, filterType: ImageFilterType)Append an image from a stream using the given filter; returns its assigned resource name.
Add(image: Stream, quality: int)Append an image from a stream re-encoded as JPEG at the given quality.
Add(bitmapInfo: BitmapInfo)Append an image from a raw bitmap; returns its assigned resource name.
Add(bitmapInfo: BitmapInfo, filterType: ImageFilterType)Append an image from a raw bitmap using the given filter; returns its assigned resource name.
Clear()Remove every image from the collection.
Contains(item: XImage)Whether the collection contains the supplied image.
CopyTo(array: XImage[], index: int)Copy collection contents into an array starting at index.
Delete()Remove every image (alias for Clear).
Delete(index: int)Remove the image at the 1-based index.
Delete(index: int, action: ImageDeleteAction)Remove the image at the 1-based index using the supplied action policy.
Delete(name: string)Remove the image with the supplied resource name.
Delete(name: string, action: ImageDeleteAction)Remove the named image using the supplied action policy.
GetImageName(image: XImage)Return the resource name of the supplied image.
Remove(item: XImage)Remove an image and report whether it was present.
Replace(index: int, stream: Stream)Replace the image at the 1-based index with the supplied stream.
Replace(index: int, stream: Stream, quality: int)Replace the image at the 1-based index with a JPEG re-encoded at the given quality.
Replace(index: int, stream: Stream, quality: int, isBlackAndWhite: bool)Replace the image at the 1-based index with a JPEG re-encoded at the given quality, optionally rendering as black-and-white.
GetEnumerator()Enumerator typed to XImage.
GetByName(name: string)Get an image by its resource name (e.g., “Im0”, “JI1a”).

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise
 Français