News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Images Effects

Started by Grincheux, November 26, 2005, 08:52:32 PM

Previous topic - Next topic

Grincheux

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]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

MichaelW

WinZip cannot open the attachment.
eschew obfuscation

negativegeforce

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.

LL

Hi,

Same as MichaelW, can't open attachment !

LL

Faiseur

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....


French asm Forum: http://www.asmforum.net/   Website: http://www.faiseur.net/

Grincheux

I used WinRar and rename the ".rar" in ".zip" Because it is not possible to upload other files than zip !
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Grincheux

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
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

MusicalMike

WinRAR can also create ZIP archives you know.

Grincheux

I know, there are biggest than RAR
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

PBrennick

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
The GeneSys Project is available from:
The Repository or My crappy website

Grincheux

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]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz