Hello Martin,

>What is the Original Image datatype (jpeg,gif,bmp?) which is represented >by Image 
>Taglib ver1.2?

yes, it could be jpeg,gif,bmp,png

>So we get down to the question of what is an image?
>Is it a bmp/jpeg/gif that has fixed attributes
>(width,height,bitdepth,forecolor,backcolor)
>or is it something we draw and later capture as in 2)
it is something you can draw (java.awt.Graphics) that will be rendered
(encoded) as JPEG for output






"Martin" <[EMAIL PROTECTED]> wrote:

>Dmitry-
>In the simplest case you can probably use existing the TagLib you referred
>to
>http://www.servletsuite.com/servlets/jpegtag.htm
>The problem here is
>What is the Original Image datatype (jpeg,gif,bmp?) which is represented by
>Image Taglib ver1.2?
>1)if stored as JPEG format
><%@ taglib uri="taglib.tld" prefix="im" %>
>
><im:convertImage sourceFile="c:/pictures/picture.jpg"
>targetFile="c:/pictures/picture125x125.jpg" width="125" height="125"/>
>
>in this case we are done..
>
>Then again is it a
>2)Java graphics object which can be called up later
>e.g.
>For example, suppose you have the following definition in file pic.jsp:
>
><%@ page import="java.awt.*" %>
><%@ taglib uri="taglib.tld" prefix="pic" %>
>
><pic:JPEG width="125" height="125">
> <%
>  graphics.setColor(Color.blue);
>  graphics.fillRect(0,0,125,125);
>  graphics.setColor(Color.yellow);
>  graphics.drawString("Hello",30,60);
> %>
></pic:JPEG>
>In this example Java code in tag's body draws blue rectangle and writes in
>yellow Hello. You may use pic.jsp in your JSP/HTML code as a source for
>image: <img src="pic.jsp" width=125 height=125>
>this would be the simplest implementation for declaring a graphics object
>and then referring to it later in code
>
>So we get down to the question of what is an image?
>Is it a bmp/jpeg/gif that has fixed attributes
>(width,height,bitdepth,forecolor,backcolor)
>or is it something we draw and later capture as in 2)
>
>There are so many libraries out which render images that one has to narrowly
>focus on
>a)Image Datatype Used
>b)Finite # of attributes you can set 2D/3D
>This actually works well when encapsulating in a TagLib..
>could you imagine while drawing the morphing cop from T2 and then
>encapsulating ALL of its functionality
>into a Tag???
>-its running/shooting/talking/stabbing
>-it is a SecurityGuard/Housewife/Cop/A piece of liquid metal puring thru a
>hole in the glass
>-is has holes in its chest/long steel arms/shoes that meld with other steel
>
>maybe if we knew a bit more of the specific image you are rendering I could
>be of greater assistance,
>
>Martin
>
>----- Original Message -----
>From: "Dmitry Namiot" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, February 08, 2003 12:45 AM
>Subject: Re: Dynamic jpeg generation
>
>
>> >Has anybody worked on dynamic generation of jpeg, gif images using some
>>API?
>> >How can it be done? I need to use one such thing.
>> >Thanks in advance.
>>
>> See for example Jpeg taglib from Coldtags suite:
>> http://www.servletsuite.com/jsp.htm
>>
>>
>>
>>
>>
>> --
>> Coldbeans Software - server-side Java (tm) components
>> http://www.servletsuite.com
>>
>>
>> __________________________________________________________________
>> The NEW Netscape 7.0 browser is now available. Upgrade now!
>http://channels.netscape.com/ns/browsers/download.jsp
>>
>> Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>>
>>
>===========================================================================
>> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>>
>> Some relevant archives, FAQs and Forums on JSPs can be found at:
>>
>>  http://java.sun.com/products/jsp
>>  http://archives.java.sun.com/jsp-interest.html
>>  http://forums.java.sun.com
>>  http://www.jspinsider.com
>>
>


--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com


__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to