### ImageMagick version

7.1.1.21

### Operating system

Windows

### Operating system, version and so on

Windows 11

### Description

I am using FloodFillPaint, filling a DirectClass RGBColorspace 256x256 destination image with a 128x128 pseudo class pattern.
The destination image is black, and the filling operation should result in tilling the pattern over the destination image.

But the result **is an a black image with a white alpha channel**.

It seems that the filling operation which occurs line 355/356 in FloodfillPaintImage (.\MagickCore\paint.c) does not correctly handle the pseudo class case.

On the capture, bottom left, there's the fill_color get by GetFillColor, and right is the q pixel content fill by fill_color.
As show the red/green/blue pixel value are fill with invalid values.

![FillFloodDebug](https://github.com/ImageMagick/ImageMagick/assets/15813085/87cb20ed-c251-4561-bb40-98d71481bf96)

May be there's a command that allows to reproduce the problem using a magick, but I didn't find it.

### Steps to Reproduce

This is the file used to fill the destination image

![defaultbk](https://github.com/ImageMagick/ImageMagick/assets/15813085/143cb470-02c7-48ea-842c-13b72dc99456)


### Images

_No response_
FloodfillPaintImage with pseudo image class fails
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : FloodfillPaintImage with pseudo image class fails
Issue date:

--- start body ---
### ImageMagick version

7.1.1.21

### Operating system

Windows

### Operating system, version and so on

Windows 11

### Description

I am using FloodFillPaint, filling a DirectClass RGBColorspace 256x256 destination image with a 128x128 pseudo class pattern.
The destination image is black, and the filling operation should result in tilling the pattern over the destination image.

But the result **is an a black image with a white alpha channel**.

It seems that the filling operation which occurs line 355/356 in FloodfillPaintImage (.\MagickCore\paint.c) does not correctly handle the pseudo class case.

On the capture, bottom left, there's the fill_color get by GetFillColor, and right is the q pixel content fill by fill_color.
As show the red/green/blue pixel value are fill with invalid values.

![FillFloodDebug](https://github.com/ImageMagick/ImageMagick/assets/15813085/87cb20ed-c251-4561-bb40-98d71481bf96)

May be there's a command that allows to reproduce the problem using a magick, but I didn't find it.

### Steps to Reproduce

This is the file used to fill the destination image

![defaultbk](https://github.com/ImageMagick/ImageMagick/assets/15813085/143cb470-02c7-48ea-842c-13b72dc99456)


### Images

_No response_
--- end body ---
