Gems/Atom/Asset/ImageProcessingAtom/Code/Source/Previewer/ImagePreviewer.cpp
QImage GetSubImagePreview(IImageObjectPtr image, uint32_t mip)
    {
        AZ::u8* imageBuf;
        AZ::u32 pitch;
        image->GetImagePointer(mip, imageBuf, pitch);
        const AZ::u32 width = image->GetWidth(mip);
        const AZ::u32 height = image->GetHeight(mip);
        return QImage(imageBuf, width, height, pitch, QImage::Format_RGBA8888);
    }
// Get the preview of a sub-image specified by mip
Get the preview of a sub-image specified by mip
Get the preview of a sub - image specified by mip
QImage GetSubImagePreview(IImageObjectPtr image, uint32_t mip)
    {
        AZ::u8* imageBuf;
        AZ::u32 pitch;
        image->GetImagePointer(mip, imageBuf, pitch);
        const AZ::u32 width = image->GetWidth(mip);
        const AZ::u32 height = image->GetHeight(mip);
        return QImage(imageBuf, width, height, pitch, QImage::Format_RGBA8888);
    }
QImage GetSubImagePreview ( IImageObjectPtr image , uint32_t mip ) { AZ :: u8 * imageBuf ; AZ :: u32 pitch ; image -> GetImagePointer ( mip , imageBuf , pitch ) ; const AZ :: u32 width = image -> GetWidth ( mip ) ; const AZ :: u32 height = image -> GetHeight ( mip ) ; return QImage ( imageBuf , width , height , pitch , QImage :: Format_RGBA8888 ) ; }
Get the preview of a sub-image specified by mip
Get the preview of a sub - image specified by mip