image viewer
Moderator: Moderator Team
image viewer
Hi all
I've got a real noob question. Since I'm still using Windows 2000 and therefore don't have an "image viewer" (like XP has) I plan to write one myself. I guess this would be a useful programm for ReactOS, too. (I'm not implying that I expect anything I come up with to necessarily become an official part of ReactOS)
In a first step, I want to create something to show BMPs, PNGs, JPEGs and maybe GIFs in a window and as a fullscreen slideshow. Nothing fancy. I have some C/C++ experience but have never done anything with the WinAPI. I have only worked with SDL in the past. I could write it using SDL and SDL_image, but I would like to write a "pure" WinAPI program. So far I only understand how to create a window and paint a BMP.
So, here's my question: Does ReactOS already have something like GDI+? Or is there any any other library that I could call, that is already implemented in ReactOS? Any other, general keywords I should google to get me started with this little project?
thanks a lot!
Roman
EDIT: I did some "research" myself and found two interesting libraries I will check out.
http://freeimage.sourceforge.net/
http://openil.sourceforge.net/
I've got a real noob question. Since I'm still using Windows 2000 and therefore don't have an "image viewer" (like XP has) I plan to write one myself. I guess this would be a useful programm for ReactOS, too. (I'm not implying that I expect anything I come up with to necessarily become an official part of ReactOS)
In a first step, I want to create something to show BMPs, PNGs, JPEGs and maybe GIFs in a window and as a fullscreen slideshow. Nothing fancy. I have some C/C++ experience but have never done anything with the WinAPI. I have only worked with SDL in the past. I could write it using SDL and SDL_image, but I would like to write a "pure" WinAPI program. So far I only understand how to create a window and paint a BMP.
So, here's my question: Does ReactOS already have something like GDI+? Or is there any any other library that I could call, that is already implemented in ReactOS? Any other, general keywords I should google to get me started with this little project?
thanks a lot!
Roman
EDIT: I did some "research" myself and found two interesting libraries I will check out.
http://freeimage.sourceforge.net/
http://openil.sourceforge.net/
RomanH
-
- Posts: 318
- Joined: Wed Jun 15, 2005 8:19 am
Re: image viewer
I think ReactOS does, not sure though...RomanH wrote:Hi all
I've got a real noob question. Since I'm still using Windows 2000 and therefore don't have an "image viewer" (like XP has) I plan to write one myself. I guess this would be a useful programm for ReactOS, too. (I'm not implying that I expect anything I come up with to necessarily become an official part of ReactOS)
In a first step, I want to create something to show BMPs, PNGs, JPEGs and maybe GIFs in a window and as a fullscreen slideshow. Nothing fancy. I have some C/C++ experience but have never done anything with the WinAPI. I have only worked with SDL in the past. I could write it using SDL and SDL_image, but I would like to write a "pure" WinAPI program. So far I only understand how to create a window and paint a BMP.
So, here's my question: Does ReactOS already have something like GDI+? Or is there any any other library that I could call, that is already implemented in ReactOS? Any other, general keywords I should google to get me started with this little project?
thanks a lot!
Roman
EDIT: I did some "research" myself and found two interesting libraries I will check out.
http://freeimage.sourceforge.net/
http://openil.sourceforge.net/
However, if you write your software for Win2k/XP it should work on ROS (sooner or later), and if it doesn't work directly, just mention it inhere, devs will have answers for you and/or make it work (if some API isn't correctly implemented)...
Good luck
EDIT: Photofiltre, Photoshop (3.0 or something) PSP 4, and IrfanView work in ROS, so some image APIs are there I guess ^^
-graey-
Hi!
thanks for trying to help. I asked for GDI because I didn't really know, what I was looking for and I had some vague idea what GDI+ is supposed to do.
However, in the meantime I have experimented with the FreeImage library (GPLed) a little and had some first successes. I'm now able to display tons of different formats in a window. (haven't tried it on ReactOS yet, though)
[ external image ]
I'll keep on working on it and let you know if there are any significant breakthroughs.
thanks for trying to help. I asked for GDI because I didn't really know, what I was looking for and I had some vague idea what GDI+ is supposed to do.
However, in the meantime I have experimented with the FreeImage library (GPLed) a little and had some first successes. I'm now able to display tons of different formats in a window. (haven't tried it on ReactOS yet, though)
[ external image ]
I'll keep on working on it and let you know if there are any significant breakthroughs.
RomanH
well, you can load and display BMP, GIF, and JPG images using win32 COM functionality (OleLoadPicturePath). However, I doubt that code for this has been done in Reactos as of yet (not exactly high priority). example code in c can be found here: http://www.codeproject.com/bitmap/the_b ... lain_c.aspRomanH wrote:Hi!
thanks for trying to help. I asked for GDI because I didn't really know, what I was looking for and I had some vague idea what GDI+ is supposed to do.
However, in the meantime I have experimented with the FreeImage library (GPLed) a little and had some first successes. I'm now able to display tons of different formats in a window. (haven't tried it on ReactOS yet, though)
I'll keep on working on it and let you know if there are any significant breakthroughs.
Personally I'd like it if the devs extended the LoadImage call to handle other image files than bmp, it would be transparent to the user since it simply returns a handle to a BITMAP when done. Sure is alot nicer to work with than the COM interface (especially from c). also, if you want to work with gdi+ from a c environment, there is a flat api description here:
http://msdn2.microsoft.com/en-us/library/ms533969.aspx
that said, I doubt that gdi+ will be reimplemented by Reactos anytime soon, there's so much more important stuff to work on.
That's what I assume as well. However, since I primarily want do make this picture viewer for personal use, I will continue with using FreeImage. If at some point the program is usefull enough for ReactOS, one can "simply" change the image loading part of the program.Z98 wrote:The devs require that programs and utilities be win32 applications. They'll accept limited C++ programs, but not if it depends on some library not part of the default NT system. Just something to keep in mind.
RomanH
Re: image viewer
Why don't you add them to the OSS port wishlist ?RomanH wrote:EDIT: I did some "research" myself and found two interesting libraries I will check out.
http://freeimage.sourceforge.net/
http://openil.sourceforge.net/
»Forward Agency NPO
In progress we (always) trust.
In progress we (always) trust.
Re: image viewer
'cause they already are Windows libraries?forart wrote: Why don't you add them to the OSS port wishlist ?
BTW: I'll post a first version of the viewer soon.
RomanH
Hi there
I've uploaded an early version of my image viewer. Tried it on the 0.3 release of ReactOS and it didn't work.
Nevertheless, here's the link if you want to try it:
http://www.romanhoegg.ch/iv_main.htm
It doesn't do much yet, but it's already quite handy if you don't have any other picture viewer. (more features will follow)
RomanH
I've uploaded an early version of my image viewer. Tried it on the 0.3 release of ReactOS and it didn't work.
Nevertheless, here's the link if you want to try it:
http://www.romanhoegg.ch/iv_main.htm
It doesn't do much yet, but it's already quite handy if you don't have any other picture viewer. (more features will follow)
RomanH
RomanH
Uuuuhhh-HO ! Nice finding:
[ external image ]
more shots...
SF project page
What's OpenImageManager wrote:OpenImageManager, the new Opensource Acdsee written in C#.
It's based on the idea of the very popular image viewer ACDSee(TM), includes Thumbnails feature, HTML Album Generator and more...
[ external image ]
more shots...
SF project page
»Forward Agency NPO
In progress we (always) trust.
In progress we (always) trust.
...but is not open (and sincerly XnView is ways better for me).Haos wrote:Nothing`s better on Windows than Irfanview...
»Forward Agency NPO
In progress we (always) trust.
In progress we (always) trust.
Who is online
Users browsing this forum: No registered users and 12 guests