Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Images.GetImageFromCollection(Image, Int32, Int32, Int32, Int32) Method

Returns an image from the image collection at the specified position within the specified height and width.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public Image GetImageFromCollection(
    Image image,
    int width,
    int height,
    int wIndex,
    int hIndex
)

#Parameters

Name Type Description
image Image

A Image object which resolution settings will be applied to the resulting image.

width Int32

An integer value that specifies the width of the resulting image.

height Int32

An integer value that specifies the height of the resulting image.

wIndex Int32

An integer value that specifies the vertical position of the resulting image in the images collection.

hIndex Int32

An integer value that specifies the horizontal position of the resulting image in the images collection.

#Returns

Type Description
Image

A Image object which represents an image at the specified position of the specified size.

#Remarks

Use the GetImageFromCollection method to find a particular image within this Images collection.

See Also