Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (miker)


(1) 2 3 4 ... 17 »


Re: A week in AROS...

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
I'm also taking a short break for Christmas and New Years and then the first week of January I'll get back to work on the picture datatypes.

Posted on: 12/28 17:37
Transfer the post to other applications Transfer


Re: Merry Christmas

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
Wishing you all a Very Merry Christmas!

Posted on: 12/25 7:55
Transfer the post to other applications Transfer


Re: Winodow/Amiga key does not work

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
Key remapper? That's good to know. I'll remember that when I set up AROS hosted for Windows.

Posted on: 12/15 9:37
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
The Image Viewer continues to evolve, in a positive way, day by day!

There's no real secret to Intuition Messages. Whenever an application creates a window Intuition acts as messenger allowing the application to communicate with the window and its gadgets and menu system.

In the case of menus whenever the user selects a menu item Intuition sends a message to the window's message port where the application is listening, waiting to get a coded message. For menu systems msg->code consists of a number that corresponds to the menu number, item number, and/or subitem number. Such as "menu(0), item(1)". That allows the application to interpret which menu item was selected. Similar messages are generated for other IDCMP such as CloseGadget, NewSize, etc. as well as MenuPick.

There is another type of window that also has a message port. An AppWindow apparently creates a drop target for drag-n-drop operations. When an icon or file is dragged into the AppWindow among the messages Intuition sends is the filename. The application then decides what to do. An AppWindow, when used with x y mouse coords could be useful for graphics applications to display icon images or thumbnail images. That might be used with a PNG Icon Editor. I'll explore that method later.

The menu system for the image viewer is now working well.

Posted on: 12/12 10:22
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
@oan3,

We have to be sure what we are talking about here. The jpeg library is different than the jpeg picture datatype. The jpeg picture datatype is located in a hidden drawer in AROS partition. The drawer is called Classes/DataTypes. The datatype itself is called jpeg.datatype and that is what MultiView and presumably ZuneView uses. (Icaros Default Image Viewer with double-click is MultiView).

If you replaced the jpeg library itself with the one from Icaros 1.5.2 then that's a different scenario. I have the iso for 1.5.2 on one of my hard disks. I'll try it when I get a chance to see what the differences are in jpeg files.


Posted on: 12/9 11:49
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
Now my Image Viewer has a working GadTools NewMenu System! It is a very simplistic menu system, but it works for me. Other than the menu item array struct most of the important action takes place in a function called "ShowImage" that handles the menu.

The difficulty I'm having at the moment deals with the 'Active Window' and Intuition. When I have more than one window open at a time, only the most recently opened window will have a functioning menu that responds to Intuition Messages. The other windows, even when I click to activate them also have menus but the items are inactive and the messages get queued. After the most recently (last) opened widow is closed then the next one in line (next to last opened) executes its queued menu commands. MultiView functionality using a similar NewMenu system allows selecting a window to make it and its menu active which then allows it to respond to the current set of Intuition messages.

Once I figure out Intuition Messages for the Active Window I will need a function to get fullpath using the Active Window Title and a filePathBuffer. Then I will be able to Save As, Save As IFF, and Save As PNG. The first Image Viewer will have limited capability to convert between image types. But the more advanced 'ShowPicture' will be fully functional as far as image conversions, modifications, and transformations.

Posted on: 12/9 11:39
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
@amiga,

Interestingly, I tried to view the first Black Panther jpg file with the Nightly ABIv1 jpg datatype and it failed.

I used a paint program to open it and then re-saved as a 24bit jpg. Then I was able to view it with ABIv1 in MultiView and ZuneView.

The original jpg file was quite a bit smaller in size than the re-saved file as in 50kb vs 25kb. It could be due to the compression algorithm used, but 25kb is a lot of difference.

Which version of ABIv0 are you using? Icaros, Hosted, Native? I wonder which jpg datatype you are using. If it's ABIv0 I could use the same one to test the jpg file with.

Posted on: 12/8 19:22
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
@oan3,

This is all the same topic - AROS Jpeg DataType.

So, you can see both jpg images with the jpeg datatype from Icaros 1.5.2?

I have that Live! DVD. I'll try using that one.



Posted on: 12/8 11:13
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
I'm using Icaros Desktop (ABIv0). I'll try with ABIv1.

Posted on: 12/7 18:00
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
2017/5/2 17:15
From California, United States
Group:
Member
Posts: 164
Offline
union
{
unsigned long;
unsigned char byte[4];
} ARGBlong2char;


ARGBlong2char.long = val;

buffer[offset++] = ARGBlong2char.byte[0];
buffer[offset++] = ARGBlong2char.byte[1];
buffer[offset++] = ARGBlong2char.byte[2];
buffer[offset++] = ARGBlong2char.byte[3];

>There are two simple reasons for the use of union here:

>1st
The compile can ddecide if he uses '>>' together with '& 0xff' ore something better for the byte access.

>2nd
You can switch to other byte orderings faster without thinking where to shift what ...

I like the idea of using a union. I would still have to declare unsigned char buffer[4]; and I would have to return the buffer[]. I'd like to use it as a helper function so that it can be re-used. I'll try that.

Posted on: 12/7 13:13
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 ... 17 »




Search
Top Posters
1 paolone
paolone
4439
2 magorium
magorium
4095
3 nikolaos
nikolaos
4075
4 phoenixkonsole
phoenixkonsole
3941
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2807
7 mazze
mazze
2222
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1516
© 2004-2018 AROS Exec