Author Topic: what size should the pictures have for the Img2CPC? horizontal: 8,16,24,32,40 ..  (Read 1150 times)

0 Members and 1 Guest are viewing this topic.

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0

Hi good afternoon.

i want to develop sprites for cpctelera. the format should be bmp.
what color depth is suggested and what size should the images have for the Img2CPC?
horizontal: 8,16,24,32,40 .....

what color depth?


greeting


Offline Norman

  • CPC464
  • **
  • Posts: 33
  • Country: de
  • Liked: 40
  • Likes Given: 148
You can create sprites in any software and export it to e.g. PNG (other formats might work as well). The image size doesn't have to be a power of two or something, and the limit is the following:
Quote
(1B C ) widthSprite Width in bytes [1-63] (Beware, not in pixels!)
(1B B ) heightSprite Height in bytes (>0)
(from the CPCTelera docs)
Apart from that, have a look at the cfg/image_conversion.mk file in your CPCTelera project folder, there you'll find a detailed explanation of how Img2CPC works, what parameters it takes etc.

Cheers

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0
hello, thanks for info.


greting