Flood fill odd results in 64bit

I cant debug it, but it appears that flood fill is giving ‘speckled’ results in a 64 bit build which works perfectly in 32bit
Anyone else seen similar issues?

Have you tried setting g.scalex and ScaleY to 1 before doing the FloodFill?

Happens in Xojo 2015 … its not a scale issue (unless Scalex and Scaley existed back then too?)
I’ll see if I can create a simple standalone example.
For now, Ive had to revert to 32bit builds.

Here is the test code:

[code]dim bigpic2 as new picture(300,300,32)
dim bigpic2rgb as RGBSurface
dim bpg as Graphics

bigpic2rgb = bigpic2.RGBSurface
bpg = bigpic2.Graphics

bpg.forecolor = &c00ff00
bpg.fillrect 0,0,300,300 //make the whole thing green

bpg.forecolor = &cFF0000
bpg.drawrect 100,100,100,100 //draw a rectangle

bigpic2rgb.FloodFill 10,10,&cffffff //fill outside the rect with white

//show me the result
g.DrawPicture bigpic2,0,0[/code]

The difference between the results : (64 bit on the left, 32 on the right)
The effect varies according to the color you attempt to fill… if the initial fillrect is black, everything is filled.

File a bug report with your sample and findings.

[quote=306101:@Jeff Tullin]Happens in Xojo 2015 … its not a scale issue (unless Scalex and Scaley existed back then too?)
I’ll see if I can create a simple standalone example.
For now, Ive had to revert to 32bit builds.[/quote]
Yeah, sorry. My brain confused 64-bit with HiDPI for a moment.

Sadly, I cannot.

Feedback has never worked for me.
But right now, Im not using the most recent build - so even if it worked… :frowning:

Have you tried to download it from Extras, and install it separately ?

Alternatively, you could post your sample program here for others to try.

reported: <https://xojo.com/issue/46455>

Thanks Michel…
The code above , in the PAINT event of a canvas, (I see I forgot to mention where to put it) is all that is needed to recreate the problem.

I cannot find any other alternative flood fill for Xojo, so its 32bit or nothing at the moment…

Thanks for reporting, Christian. :slight_smile:

(btw: I did spend some time trying to recreate the code using GMImageMBS but that also had problems.
CopyPicture returned nil

[code]
dim bigpic2 as new picture(300,300,32)
dim gg as new GMGeometryMBS(300,300)
dim c as new GMColorRGBMBS(“white”) // white
dim image as new GMImageMBS(gg, c)
image.strokeColor = new GMColorRGBMBS(“red”) // Outline color
image.fillColor = new GMColorRGBMBS(“green”) // Fill color
image.strokeWidth = 5
dim draw as GMGraphicsMBS = image.Graphics
// Draw a circle
draw.Rectangle(100, 100, 100, 100)

//testing had floodfillXY here

bigpic2 =image.CopyPicture[/code]
g.drawpicture bigpic2,0,0
)

this is using a recent plugin?

and you could set the type of image to RGB before using CopyPicture.