Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Import iff images in Amos pro 2.0 issue  (Read 8254 times)

0 Members and 3 Guests are viewing this topic.

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Import iff images in Amos pro 2.0 issue
« on: September 16, 2018, 11:05:15 PM »

Dear Amigans developers,
iḿ a new memeber here but not new in the Amiga scene : ),i usually build hardware but i love to develop little programs or games in BASIC for variouse platforms. Now i want to go a step forward, implement graphics, but i find this difficult everytime i try.
I have bought the book AMOS Programming and iḿ reading it. Arrived at the point to insert iff images i have an issue, i have made a wallpaper 320 x 256 with a photograph found in internet in creative commons wallpaper, adapted it in bmp with gimp and converted in iff with ADpro for amiga, when i try to load it inside the AMOS PRO i write this program and i get a dosent fit error. this is the program: Screen Open 0,320,256,16,Lowres
LOAD iff¨3.1_Copper_New:sfondo.iff¨ where copper new is the hard disk and sfondo is the image. Please help me solve this issue.
Thank you
Toolkitman  8)
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #1 on: September 19, 2018, 10:57:45 AM »

Hello Toolkitman :)

I get that error message from Load Iff a lot, the last time because I had an iff picture that was converted from a 10-colour png. The solution was to increase the number of colours to 16 and reconvert. You probably have a similar problem because you're working on a photography, so make sure your bmp has exactly 16 or 32 indexed colours before converting with ADpro. You also need to specify the correct number of colours in Screen Open, too many or too few will give you the same error message.
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #2 on: September 22, 2018, 02:04:11 PM »

Thank you i will try, do you know how i can change color dept like 16 color,in windows paint or gimp?
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #3 on: September 22, 2018, 05:15:56 PM »

I know how to do it in mtPaint... (small program, free, recommended ;))

1. Select "Image->Convert To Indexed", skip this step if it's grayed out.
2. Select "Palette->Set Palette Size" and choose an appropriate size for the palette.
The undo button can revert most changes, including the ones mentioned above.
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #4 on: September 23, 2018, 11:47:30 AM »

Thank you again i made it!!!! ;D
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #5 on: September 23, 2018, 12:25:57 PM »

Well done :D
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #6 on: September 27, 2018, 10:21:55 AM »

I have a small issue with the images converted in .iff, when using images from google or edited more than one time by me i find some pixel bliking in yellow, there is a way to eliminate this issue?
Thanks
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #7 on: September 27, 2018, 12:49:23 PM »

Colour 3 is automatically set up to Flash in every new screen (you can design your own using the Flash command). It can easily be turned off using Flash Off :)

The timing is a bit important though; it should always be turned off *before* loading/defining the palette. I've gotten used to put it in immediately after each Screen Open.
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #8 on: September 27, 2018, 01:02:01 PM »

Flash Off works fine, Thank you so much! :-[
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #9 on: October 04, 2018, 02:48:45 AM »

I have another question about iff images and when you put  a printed basic text over it, it exit with a bar the color of the background but longer than the sentence and sometimes with an added color at the finish, how i fix this?
Logged

LuisCoCo

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 7
  • Retro User And Programing
    • Retro Software in spanish
Re: Import iff images in Amos pro 2.0 issue
« Reply #10 on: October 07, 2018, 03:52:28 PM »

I have another question about iff images and when you put  a printed basic text over it, it exit with a bar the color of the background but longer than the sentence and sometimes with an added color at the finish, how i fix this?
To place text in graphics you may want to use the AMOS Pro TEXT command
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #11 on: October 07, 2018, 07:32:06 PM »

This is not my question, i know how to insert text. But i noticed some glitches in the image.
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #12 on: October 28, 2018, 11:06:45 PM »

I have another question about iff images and when you put  a printed basic text over it, it exit with a bar the color of the background but longer than the sentence and sometimes with an added color at the finish, how i fix this?

That bar you're referring to, I assume it changes colour if you write
Code: [Select]
Pen ,3before the Print statement?

In that case you can get rid of it by first using "Gr Writing 0", and then use Text instead of Print for printing text to the screen. :D
The added colour at the finish is probably the cursor (Curs Off should help ;)).
Logged

Toolkitman

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 81
  • Amiga 1200 raspberry pi Ideator & Creator
Re: Import iff images in Amos pro 2.0 issue
« Reply #13 on: October 29, 2018, 09:26:08 AM »

Thanks i will try later!
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Import iff images in Amos pro 2.0 issue
« Reply #14 on: November 12, 2018, 10:37:59 AM »

Oops!
Got a bit too cocky and posted code without first checking that it works :(
Pen ,3 results in syntax error, the correct way is to use the command Paper 3. (I mixed up with Ink ,3.)

To amend for the confusion and frustration I might have caused by posting bogus code, I have looked up an alternative way to avoid the background colour which will allow you to use Print instead of Text. :)

What to do is to set the Pen colour to the maximum colour of the screen and use the command Writing 1,2.
If the screen has 32 colours, the code looks like this:
Code: [Select]
Pen 31
Writing 1,2
Subsequent Print statements will not reveal the Paper colour.
Trying other Pen colours than the maximal could result in interesting colour mixing effects :P
« Last Edit: November 12, 2018, 10:58:47 AM by adrazar »
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022