# SetImageSubImages

## Description

Sets the sub image data for an atlas image, which is the layout of where each sub image is located within the atlas image. Normally this is loaded automatically from the subimages.txt file when the image is loaded, but if this is not possible then this command can be used to set that data. The file must be a valid subimages.txt file in the same format as that specified in LoadSubImage Unlike the normal load image command the file does not need to be named subimages.txt, it can have any name and path

## Definition

SetImageSubImages( uint32_t iImageIndex, sSubImageFile )

void agk::SetImageSubImages( uint32_t iImageIndex, const char* sSubImageFile )

## Parameters

- iImageIndex - The ID of the image to change
- sSubImageFile - The path to the sub images file