Search found 5 matches

by benfield
Tue Feb 08, 2022 10:33 pm
Forum: Other topics
Topic: Image chopping
Replies: 9
Views: 5358
Flag: Great Britain

Re: Image chopping

Many thanks.

I really appreciate the tuition.
by benfield
Tue Feb 08, 2022 10:11 pm
Forum: Other topics
Topic: Image chopping
Replies: 9
Views: 5358
Flag: Great Britain

Re: Image chopping

Maybe it’s my fault then but: - you have used 0 which I assume is a single sprite in which case I don’t really understand the significance of the 13,4 - I wanted a named sprite array N$ with 52 separate elements which I could display separately in a FOR loop I do appreciate the help - I’m learning a...
by benfield
Tue Feb 08, 2022 9:23 pm
Forum: Other topics
Topic: Image chopping
Replies: 9
Views: 5358
Flag: Great Britain

Re: Image chopping

Attached
by benfield
Tue Feb 08, 2022 6:35 pm
Forum: Other topics
Topic: Image chopping
Replies: 9
Views: 5358
Flag: Great Britain

Re: Image chopping

Thanks Mr K. So that I can understand this better, can you tell me why; X=0!Y=0!W=1366!H=129*A SPRITE n$ SCAN X,Y, W,H SPRITE n$ SAVE "cards4.png" SPRITE S$ LOAD "cards4.png",13,A gives the same result when A=1, a single suit, as when A=4. N$ is a simple image consisting of 13 cards across by 4 suit...
by benfield
Tue Feb 08, 2022 5:56 pm
Forum: Other topics
Topic: Image chopping
Replies: 9
Views: 5358
Flag: Great Britain

Image chopping

What are the criteria for dividing an image file when loading it into a SPRITE array. It seems to be more intelligent than just chopping the screen into equal divisions. Does it recognise white space and/or objects? SPRITE "cards" LOAD "cards.png",14,4 seems to pick out just the cards. Thanks Andy S...