Outre la création de votre site, BuCoWeb propose des solutions d'hébergements en asp ou en php/MySql sous Windows Server System, pour la Belgique et la France à partir de 7€HT/mois.
 


Page: "ASP Image"


Hébergement
BuCo 1
BuCo 2
BuCo 3
Toutes nos formules
Noms de domaine
 
Conception de sites
Nos offres
Nos références
Nos compétences
Ergonomie
eBusiness
eCommerce
Infographie
Formation
Référencement
Présence
Optimisation

Positionnement

Services
Composants installés
Scripts asp et php

Installation gratuite

Assistance technique
   
Serveurs
Whois
 
Kits graphiques


 
ASP Image

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:

Create GIF* (RLE encoding only. Loading of GIFs not supported) JPG, PNG, BMP, TGA and PCX format images.
Modify existing images (JPG, BMP, PNG, TGA and PCX)
Gradient fills
Animated GIF creation
A large variety of draw methods
Transparent PNG and GIF
What's New in 2.x
Loading existing PNG, TGA and PCX files is now supported
Creation of WBMP files for WAP is now supported. Loading of WBMPs not supported
Better behavior under IIS 4.x w/MTS.
Many new methods including Blur, Contrast, Emboss, Sharpen, Wave
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

Creating the object
Setting a few properties
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
The license fee covers only one CPU per license. The product may be purchased online from http://www.serverobjects.com/products.htm
About Upgrades
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.
How to get upgrades
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:

Stop all IIS related services such as Gopher, FTP and W3SVC.
Change to the directory where the component is located and type "regsvr32 /u aspimage.dll"
Move the new copy of aspimage.dll to the current directory and type "regsvr32 aspimage.dll"
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.



   Nos formules d'hébergement


Hébergement de votre site internet à partir de 3,75€ ht / mois !


BuCo 1

Espace disque 50 Mo
3 adresses email
Tarif : 3,75€ ht/mois

Découvrez le pack Buco 1


Buco 2

Espace disque 100 Mo
5 adresses email
Tarif : 7,5€ ht/mois

Découvrez le pack Buco 2


Buco 3

Espace disque 250 Mo
10 adresses email
Tarif : 12.5 € ht/mois

Découvrez le pack Buco 3 et son bonus. Recevez en plus de votre hébergement votre carte de visite reprenant votre logo et coordonnées, un document type sous Word reprenant votre logo en en-tête de lettre ainsi que les caractéristiques de votre société ou association et enfin une enveloppe type avec votre logo et votre adresse.

Configuration : IIS5, W2K Serveur, ASP3.0, ASP.NET 1.1, PHP4, MYSQL



© BuCoWeb Tous droits réservés
Created by: BuCoWeb - Hébergé par: BuCoWeb

 
17, rue des longues aires à 6990 BOURDON (HOTTON) Belgique
TVA: BE691.523.094