hebergement asp-php
 
   NOS OFFRES
 
   Packs "PERSO"
   Packs "PRO"
   Pack CYBER I
   Pack CYBER II
   Pack CYBER III
   
 
   NOS AVANTAGES
   Nos tarifs
   Notre réseau
   Notre assistance
 
   NOS SERVICES
   Nom de domaine
   HTTPS et SSL
   Whois
   Téléchargements
   Composants asp
   Revendeurs
   FAQ
   ACCES CLIENTS
 
   NOS ACTIVITES
   Conception
   Référencement
   Sonneries et logos
 
   LIENS UTILES
   Réseau
   
   

COMPOSANTS ASP : ASPIMAGE

ASP Image vous permet de creer des images a la volée avec ASP
  • Créer des images GIF * (RLE encoding seulement. le chargement des GIFs n'est pas supportés), JPG, png, BMP, TGA et PCX.
  • Modifiez des imges existants (JPG, BMP, PNG, TGA and PCX)
  • Taille en augmentation
  • Création des gifs animés
  • Une grande variete de methodes de dessin
  • PNG and GIF transparent


Tutoriel :

About ASPImage

ASPImage allows you to create images on the fly from ASP. Features include:

  1. Create GIF* (RLE encoding only. Loading of GIFs not supported) JPG, PNG, BMP, TGA and PCX format images.
  2. Modify existing images (JPG, BMP, PNG, TGA and PCX)
  3. Gradient fills
  4. Animated GIF creation
  5. A large variety of draw methods
  6. Transparent PNG and GIF

What's New in 2.x

  1. Loading existing PNG, TGA and PCX files is now supported
  2. Creation of WBMP files for WAP is now supported. Loading of WBMPs not supported
  3. Better behavior under IIS 4.x w/MTS.
  4. Many new methods including Blur, Contrast, Emboss, Sharpen, Wave
  5. Multiple methods for resizing. Resize provides a quick method to shrink images while ResizeR produces a resized image by resampling (and therefore takes a little longer).

ASPImage Installation

To use this ASP component move the DLL into a subdirectory (like \winnt\system32 for NT or \windows\system for Win95). Please use the version of regsvr32 that is included with this component or the version that comes with Microsoft ASP (they are the same version).

To register the component on the system change to the directory where you installed the DLL and type:

regsvr32 aspimage.dll

Simple Image Example

Using the component is as simple as

  1. Creating the object
  2. Setting a few properties
  3. Calling the SaveImage method

The following code demonstrates how to use ASPImage from VBScript. In this example we'll create a text image that say's "Welcome to" with a gradient fill.


  Set Image = Server.CreateObject("AspImage.Image")

  rem Set various font parameters
  Image.FontColor = vbBlack
  Image.Italic = True
  Image.Bold = True
  Image.FontName = "Arial"
  Image.FontSize = 12
  Image.PadSize = 10

  rem Calculate how big our text info is and set the image to this size
  rem  This has to be done since we want to fill the area with a gradient
  strMessage = "Welcome to"
  Image.MaxX = Image.TextWidth (strMessage)
  Image.MaxY = Image.TextHeight (strMessage)

  rem Create a one way gradient
  Image.GradientOneWay vbRed, vbWhite, 0

  rem Print our string to the image
  Image.TextOut strMessage, Image.X, Image.Y, false

  rem Set the filename and save
  Image.FileName = "d:\inetpub\wwwroot\images\msg1.jpg"
  if Image.SaveImage then
    rem The image was saved so write the <img src> tag out for the browser to pick up
    Response.Write "<img src=""/images/msg1.jpg""><br>"
  else
    rem Something happened and we couldn't save the image so just use an HTML header
    rem   We need to debug the script and find out what went wrong. See Image.Error for details
    Response.Write "<h2>Welcome to</h2>"
  end if

By testing the result of the SaveImage method we can determine if the image save was successful or not. If something happened that causes the image not to be saved it probably means the script is saving the image to an invalid directory or a directory where write rights do not exist.

GIF Animations

Images can be loaded or manipulated and then as these modifications occur you can save them to an animated sequence using the call AddImageToAnimation. A simple example of GIF animation can be found in soianim.asp which is included with the eval zip file for AspImage.

About purchasing ASPImage

  1. The license fee covers only one CPU per license. The product may be purchased online from http://www.serverobjects.com/products.htm

About Upgrades

  1. Users can upgrade for free for minor version changes. For example, upgrades from version 1.00 to 1.99 are free. The upgrade from 1.99 to 2.0 may carry an additional license fee.
  2. How to get upgrades
  3. The latest version of the components are always available at http://www.serverobjects.com/products.htm.   If a fee is associated with obtaining the upgrade it will be noted on that page.

Upgrade Instructions

To upgrade the component from a previous version please follow these steps:

  1. Stop all IIS related services such as Gopher, FTP and W3SVC.
  2. Change to the directory where the component is located and type "regsvr32 /u aspimage.dll"
  3. Move the new copy of aspimage.dll to the current directory and type "regsvr32 aspimage.dll"
  4. Restart any necessary IIS related services.

Common Problems

http://www.serverobjects.com/TechComm.htm 

Failures reading and/or writing image files.
Check directory security and make sure that the IIS user (authenticated and/or anonymous) has security permissions that allow read/write to the directories in question. The same problem may occur when using the AddImage method. If this fails make sure the image file is valid and that proper security permissions have been granted for the component to access the file.

© Copyright 1997, 1998, 1999, 2000 by ServerObjects Inc.

ACCES CLIENTS
   Login :
   Password :
 
 
   Contacts
    CGV
   
   
 
COMPLEMENTS
   Scripts asp-php
   Assistance technique
   CMS gratuits
   Kits graphiques
 
 
Administratif : CYBERGRAPHIK - BP 80112 - 17104 SAINTES Cedex - FRANCE
Commercial : CYBERGRAPHIK - BP 140 - 1041 Avenue de Draguignan - 83087 TOULON cedex 9
Service administratif - Service commercial et technique : 09 63 49 70 01 (prix d'un appel local)