The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Grincheux on November 26, 2005, 08:52:32 PM

Title: Images Effects
Post by: Grincheux on November 26, 2005, 08:52:32 PM
Hello,

I have written a small program which permits to see differents effects.
Before ending it I would like to have comments about it.
I would like to add more effects but I have no idea.

The program loads an image (right click) and creates memory buffers for effects.
All the effects are made in a memory buffer and then sent to the screen so that the effects you see also are present in the image I could save.

One question : How to save a buffer into a JPEG file ?

Thank You for every one in this forum, because I coul get help, ideas and sources codes. The main code I have got here is for loading image. I took it from Ernest Murphy's image library .

Thanks to bitRAKE, I got its effects from an other forum. This future efefcts are about blending. I will write them later.

The visual aspect of the program is not very good, this will change... later.

Thanks for comments.

[attachment deleted by admin]
Title: Re: Images Effects
Post by: MichaelW on November 26, 2005, 10:58:05 PM
WinZip cannot open the attachment.
Title: Re: Images Effects
Post by: negativegeforce on November 26, 2005, 11:18:15 PM
I really like the right click menu for options.  I wish I could help you with effects, but I am 100% clueless on coding image effect.  Great work, keep it up.
Title: Re: Images Effects
Post by: LL on November 26, 2005, 11:37:54 PM
Hi,

Same as MichaelW, can't open attachment !

LL
Title: Re: Images Effects
Post by: Faiseur on November 27, 2005, 02:34:05 AM
Work fine in my home PC (Windows XP).

QuoteOne question : How to save a buffer into a JPEG file ?

You can use gdi+ to save an image bitmap in JPEG with various compression ratios.  Gdi+ dll come with windows XP/server 2003  and optional in old systems. Doughiem wrote a good example here: 

http://www.masmforum.com/simple/index.php?topic=918.0

You have also found this topic....


Title: Re: Images Effects
Post by: Grincheux on November 27, 2005, 05:22:55 AM
I used WinRar and rename the ".rar" in ".zip" Because it is not possible to upload other files than zip !
Title: Re: Images Effects
Post by: Grincheux on November 27, 2005, 06:07:23 AM
To Faiseur

You are true :U, I found this topic too, but I expected to find an other way to write files. As I load files with Ernest Murphy's code, I thought that I could find the same thing. If I use GDI+, I have to change my code, I don't need any more Murphy's code. Using GDI+ could help me in giving more effects...

Thanks
Title: Re: Images Effects
Post by: MusicalMike on November 27, 2005, 06:49:01 AM
WinRAR can also create ZIP archives you know.
Title: Re: Images Effects
Post by: Grincheux on November 27, 2005, 08:29:00 AM
I know, there are biggest than RAR
Title: Re: Images Effects
Post by: PBrennick on November 27, 2005, 01:53:58 PM
This is interesting.  Windows Commander loks at the beginning (Header) of the file and not the extension, to determine what type of file it is working with so it will open a RAR file no matter what the extension is.  It could be MyFile.rar, MyFile.zip, Myfile.Paul, or anything else and it will open it as a RAR compression!  Now, that IS intelligence at work!

Note to Grincheux:  I apologize for wandering away from your nice work.  I just am trying to help everyone see it.

Paul
Title: Re: Images Effects
Post by: Grincheux on November 27, 2005, 03:49:36 PM
I don't understand anything, my english is too poor.

I usually use WinRar and I don't understand why a submited file with the RAR extension cannot be uploaded.

So here is the zip file (with a zip extension). This file has been made by windows.

[attachment deleted by admin]