Click here to Skip to main content
15,886,106 members

Comments by MartinXLord (Top 2 by date)

MartinXLord 4-Nov-18 8:03am View    
Apologies for my misdeeds - it is some years since I posted a query!

As for the "answer" it is an answer to the problem of getting the code to work and make further progress on the project.

But I agree that it is not the answer to the question as posed.

Thanks for spending your time on this.
MartinXLord 31-Oct-18 13:39pm View    
thanks for your comments

image is read from file "image = new Bitmap(openFileDialog1.FileName);"
2 lines before the clone

The cast is there because image.Clone returns an object

I amended the line to:-

newImage = (Bitmap)(image.Clone(sRec,PixelFormat.Format16bppArgb1555));

same compiler error message!

but:-

newImage = (Bitmap)(image.Clone());

is accepted!