Image size is dismatch in jsp and jpg which java made

this is my java code to create image:
image = new BufferedImage(500, 300, 1);
then generate jpg file
my jsp content:
<img border=0 height=300 src="../../images/W30_2_0010.jpg" width=500>
but the image show on browser is smaller than the size I set in jsp
Why?

Sorry...I made a mistake
It is no problem between them.

Similar Messages

  • Read China content in JSP and store in Java variable

    Hi All ,
    I have created China language content(BinaryType) using weblogic admin console.
    And I am trying to get the content and to store in a Java Variable .
    Pls suggest me how to read other language content and to store in java variable for manipulation.
    Srinivas
    I am using following lines of code to get content
    <utility:forEachInArray array="<%=newsID%>" id="node" type="com.bea.content.Node">
    INodeManager nodeManager =     ContentManagerFactory.getNodeManager();
         java.io.InputStream is =     nodeManager.getStream(new ContentContext(), node.getId(),
    "News-Content");
    when I am using inputstream "is" to read the china content , its displaying garbage values.

    Hi Rajeev,
    My Content consist of following properties
    News-Author      String
    News-Content      Binary
    News-Id           String
    "News-Content" is Binary Type .I am creating data for this property using Content Editor.
    My data consists of 3 lines of text+image
    data will be:
    author is srinivas
    created on 11th
    content is newscontent
    << inserted image >>
    where << inserted image >> ,is jpeg file.
    I want to read this data in the JSP and store in java variable , so that i can modify 1st two lines and updated data to be displayed in browser..
    I am able to read data , if its a simple text . But it has one image also.
    How to solve this issue.
    Srinivas

  • Image coming from an xml source and on which we can't click...

    Hi everybody !
    Is it possible in LiveCycle Designer ES 8.2 (or in coming version of the software) to disable the click event on ImageField ?
    I read that it is not possible yet but there is may be another solution to proceed to have an image coming from an xml source and on which we can't click.
    Thanks.

    Hi,
    Yes , you can disable image field by setting acces value to readOnly.
    Example:
         imageField1.access = "readOnly";
    It works for Adobe Reader 9
    Best regards,
    Paul Butenko

  • Image size reduction is doing new and unwelcome things to my PNGs

    I've recently upgraded to Photoshop 6 from 5.5. My work involves taking large (1500-3000 pixels square) and reducing them to 256 or below. Upon upgrading to Photoshop 6 I started to notice that the images were looking a little harsher and less blended at the small sizes. I've attached a comparison of the image once it's been resized down to 192x in both programs. The original image can be found here: Image. As you can see, there is definitely a different style of blending going on that leads to a higher contrast at the borders between colors and lines.
    These images are used in a game, and the new CS6 images look worse on the iphone than the old ones. Does anyone recognize what's going on here and how to either fix or mitigate the issue? Any help or insight is much appreciated.

    Hi,
    How are you reducing the image size, i.e. Image>Image Size?
    If your using Image>Image Size, what method under Resample Image is choosen?

  • JSP AND BEAN PROBLEm   java.lang.nullpointerexception   help me please

    hello i have a problem, when i open login.jsp and enter the form i have nullpointerexception. i don't understand where i wrong... i use tomcat 5.5 ... sorry for my english i'm italian and i speak only italian :(
    login.jsp this is the code of the java server page
    <html>
    <%@ page language="java" import="java.sql.*" %>
    <jsp:useBean id="lavoro" scope="page" class="Ok.Dino"/>
    <%@ page session="false" %>
    <style type="text/css">
    <!--
    body {
         background-color: #003366;
    a:link {
         color: #CCCCCC;
    .style1 {
         color: #000000;
         font-weight: bold;
         font-size: x-large;
    .style4 {font-size: 18px}
    -->
    </style>
    <body>
    <%if(request.getMethod()=="GET"){
    %>
    <form action="login.jsp" method= "POST" name="frmlogin" id="frmlogin">
         <div align="center">
           <p class="style1">AUTENTICAZIONE</p>
           <p> </p>
           <table width="318" height="140" border="1">
            <tr>
              <td width="95" height="60" bordercolor="#000000" bgcolor="#0066CC"><p align="center"><strong>USER</strong></p>          </td>
              <td width="207" bgcolor="#0099CC"><p align="center">
                <input type="text" name="txtnome"></p>
              </td>
            </tr>
            <tr>
              <td height="72" bordercolor="#000000" bgcolor="#0066CC"><strong>PASSWORD</strong> </td>
              <td width="207" bgcolor="#0099CC"><div align="center">
                <input name="pwdtxt" type="password">
              </div></td>
            </tr>
          </table>
           <table width="318" border="1">
            <tr>
              <td width="318" height="87"> <div align="center">
                <input name="submit" type="submit" value="invia"  >
              </div>
              <p align="center"><strong><span class="style4">Se non sei registrato fallo <a href="file:///C|/Documents and Settings/access/Documenti/My Received Files/registrazione.jsp">adesso </a></span></strong></p></td>
            </tr>
          </table>
           <p> </p>
           <p> </p>
      </div>
    </form>
    <%}else {  %>
    <%lavoro.settxtnome(request.getParameter("txtnome"));%>
    <%!ResultSet rs=null;
         String x=null;
    %>
    <% lavoro.cn_db("dbutenti");%>
    <% rs=lavoro.run_query("SELECT user FROM utenti");%>
    <%}%>
    </body>
    </html>and this is the bean code
    package Ok;
    import java.sql.*;
    public class Dino
    private String txtnome,pwdtxt;
    private Connection cn=null;
    private Statement st=null;
    private ResultSet Rs=null;
    public String gettxtnome()
    return txtnome;
    public String getpwdtxt()
    return pwdtxt;
    public void settxtnome(String n)
    this.txtnome=n;
    public void setpwdtxt(String n)
    this.pwdtxt=n;
    public void cn_db(String db)
              if(cn==null){
              //1. Caricamento del driver
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              }catch(ClassNotFoundException cnfe){
                   System.out.println("impossibile caricare il driver");
                   System.exit(1);
              try{
                   //2. Connessione al DB
                   cn = DriverManager.getConnection("jdbc:odbc:"+db);
                   //3. creazione degli oggetti Statement e ResultSet
                   st =cn.createStatement();
              }catch(SQLException e){
                   System.out.println(e+"jjj");
    }else{
         System.out.print("errore database gi�� creato");
    public ResultSet run_query(String qr)
         try{
    Rs=st.executeQuery(qr);
         }catch(SQLException e)
         System.out.print(e+"ecco l'error");
         return Rs;
    }

    Do you understand when a NullPointerException will be thrown? This will be thrown if you want to access an uninstantiated Object.
    So look to the stacktrace and go to the line where the NPE is been thrown and doublecheck if the object reference is actually instantiated.
    Or add a null-check to the object reference:if (someObject != null) {
        someObject.doSomething();
    }or just instantiate it:if (someObject == null) {
        someObject = new SomeObject();
    someObject.doSomething();

  • SQLJ JSP and SERVLETS which Environment?

    Hello,
    I am attempting to run the samples on Chapter 5 of the
    following documents with partial success.
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_
    doc/java.817/a83726/oraext2.htm
    http://download-west.oracle.com/otndoc/oracle9i/901_doc/java.901/
    a90208/oraext.htm#1015820
    1. Do I need the Apache+Jserv environment to run SQLJ and JSP?
    2. What do I need to do run SQLJ on oc4j if possible?
    3. I dont know how to load(?) and/or run this .sqljsp file.
    <%@ page language="sqlj"
    import="sqlj.runtime.ref.DefaultContext,oracle.sqlj.runtime.Oracl
    e" %>
    <HTML>
    <HEAD> <TITLE> The SQLJQuery JSP </TITLE> </HEAD>
    <BODY BGCOLOR="white">
    <% String empno = request.getParameter("empno");
    if (empno != null) { %>
    <H3> Employee # <%=empno %> Details: </H3>
    <%= runQuery(empno) %>
    <HR><BR>
    <% } %>
    <B>Enter an employee number:</B>
    <FORM METHOD="get">
    <INPUT TYPE="text" NAME="empno" SIZE=10>
    <INPUT TYPE="submit" VALUE="Ask Oracle");
    </FORM>
    </BODY>
    </HTML>
    <%!
    private String runQuery(String empno) throws
    java.sql.SQLException {
    DefaultContext dctx = null;
    String ename = null; double sal = 0.0; String hireDate = null;
    StringBuffer sb = new StringBuffer();
    try {
    dctx = Oracle.getConnection("jdbc:oracle:oci8:@", "scott",
    "tiger");
    #sql [dctx] {
    select ename, sal, TO_CHAR(hiredate,'DD-MON-YYYY')
    INTO :ename, :sal, :hireDate
    FROM scott.emp WHERE UPPER(empno) = UPPER(:empno)
    sb.append("<BLOCKQUOTE><BIG><B><PRE>\n");
    sb.append("Name : " + ename + "\n");
    sb.append("Salary : " + sal + "\n");
    sb.append("Date hired : " + hireDate);
    sb.append("</PRE></B></BIG></BLOCKQUOTE>");
    } catch (java.sql.SQLException e) {
    sb.append("<P> SQL error: <PRE> " + e + " </PRE> </P>\n");
    } finally {
    if (dctx!= null) dctx.close();
    return sb.toString();
    %>
    I named above file as test2.sqljsp then I tried these procedures:
    a) $ ojspc test2.sqljsp --these created all the files
    b) $ loadjava -u -v scott/tiger _test2.class -resolve
    this generated:
    initialization complete
    loading : _test2
    creating : _test2
    resolver :
    resolving: _test2
    errors : _test2
    ORA-29521: referenced name test2$_jsp_StaticText could not
    be found
    ORA-29521: referenced name test2SJProfileKeys could not be
    found loadjava: 2 errors
    c) listed the directory and both these files are there but it
    cannot resolve or find it?
    d) I recall reading something about publishjsp command but I have
    to establish a session shell with OSE? this part is very
    confusing and am not sure what to do here.
    e) not sure if i need to publish the loaded class (create a
    procedure? so it can be known to the rest of plsql?)
    A step by step procedure is very much appreciated. fyi.. I
    have Oracle 8.1.7, + oc4j, I can run sqlj from command line
    and class files generated I can run. I can also run JSP and
    servlets on the oc4j accessing the database. It is this SQLJ
    that throws me off balance. If you include Jdeveloper steps
    ro run SQLJ thats also welcome.
    Thanks in advance for kind responses posted.

    In many Model-View-Controller web applications implemented using J2EE, servlets are as controllers to direct the flow between the model and view. While servlets can output HTML code directly, it is much better to use JSPs for the most part. JSPs contain HTML and possibly Java scriptlets. The J2EE container will typically compile JSPs into servlets. While you could use a JSP as a controller, there are drawbacks to that approach. To minimize the amount of Java code in your JSPs, you can either use the tags provided by the JSP spec or use tag libraries written by someone else or yourself. See the JSTL for one such example.
    Also see:
    http://wiki.java.net/bin/preview/Javapedia/MVC
    http://wiki.java.net/bin/view/Javapedia/JavaServerPages

  • Comparing JSP and JSF, which 1 better?

    Currently i need to run a new project. Now i need to choosing 1 of the language to coding my project. Which 1 is better to use?
    In this project i have to include the web page that using JSP scriptlet to code because this project is create a dynamic menu to link up all web application. Is the JSF can link to JSP and JSP can link back to JSF?

    Welcome to SCN.
    Please read forum rules (you'll see that you must search the forum first (your question is already answered))

  • Reducing JPEG image size - jaggies in InDesign CC and Photoshop CC

    I have a high-res jpeg, 600ppi, 11 inches by 6.603 inches. The image is 4.21 MB, so there's plenty of data.
    I need to make it smaller to go into an InDesign document for print. I've been noticing this issue for awhile with CC. Recently I downsized a JPEG of line art in Photoshop for a poster, and it looked just awful.
    When I reduce the size to 300ppi, and 4" wide, bicubic sharper, I'm noticing that diagonals especially look really jaggy. The smaller I go, the worse the jaggies are. This is counterintuitive, because I'm reducing the size of the image.
    I have the Display Performance set to high-quality, with Allow Object-Level Display settings checked.
    When I place the CMYK reduced-size JPEG onto the page, the diagonals look jaggy. I thought it was a monitor issue, and that is contributing to it, but when I print out the page on my printer, the diagonals are still kind of jaggy. I tried placing a TIFF, and oh, my, that was twice as bad. I tried placing a PDF. Ugh.
    I've tried reducing the image to the exact size in Photoshop so I don't have to scale it in ID, then placing the image, and still jaggies.
    I've tried taking that image and dragging it from Bridge into the ID File. Still jaggies.
    I did print the image out directly from Photoshop at the smaller size, and it looks perfect.
    What could be happening? Is there a way to fix it? I'm working on a bunch of print work with some really nice photos in them (for a couple of real estate clients), and I'm afraid when the collateral gets printed, it's going to look like crap.

    Recently I downsized a JPEG of line art in Photoshop for a poster, and it looked just awful.
    When I reduce the size to 300ppi, and 4" wide,
    If it's really line art (no gray values) then 300ppi isn't enough. Line art needs to be closer to the output resolution (800-1200 ppi), and shouldn't be saved as JPEG.

  • Image size too big after drag and drop from iphoto

    I capture around 30 images/day with a point and shoot digital camera (5 MB/image). These images are used as content for about 10 documents/day that I create in Pages. After importing them into the computer I convert to grayscale and resize (via batch processing) in photoshop, so that each image is about 2x2.67 inches, 300ppi, and drop into iphoto. This is the size/resolution that i want them to be when i import them into the pages documents I am creating. When i drag them into pages though they resize to 72 ppi, as if the default is that the document will be seen on the screen and not printed. I then have to resize them again from within pages, which is a pain. Does anybody know what I am doing wrong?
    Thank you.

    You'll get best help on a question like that on Adobe's InDesign forum.

  • Wrong image size with a Nikon D70 and another issue

    Hi everyone!
    I'm a photography student and I switched a few weeks ago. I've been using Adobe Lightroom under Windows for months, now I'm trying Aperture.
    I own a Nikon D70, which is a 6 Mpix camera. The resolution of the pictures should be 3008x2000 pixels. With Aperture they are 3024x1998... It's *neither the good ratio neither the native resolution* of the camera.
    What should I do?
    Also, although I set up my camera in MTP mode, it *won't work in tethering mode*. It came back from the Nikon service center with a Nikon D70s firmware, but it should work as well, right?
    Thank you for your help!

    Strange! I had tried with the camera in PTP mode a few days ago, it wasn't working. Trying again now and it works! I must have done something wrong. Thank you anyway!
    Then I tried again the Search tool, I didn't noticed the date range restriction on the first time, now I can see a few threads about that "problem". Although I'm really not satisfied with this "issue", it seems to be this way by design and not a bug.
    Thank you everyone for your help!
    (may I delete this thread since it has no interest for other people?)

  • Image size and resolution....just when I thought I understood!

    I couldn't find this question anywhere else, but I can't be the only one who's come across this:
    I have an image in a folder...finder/explorer tells me that it's 638px X 479px, and 234KB.
    I open it in Photoshop and go to Image Size. PS says it is indeed 638x479pixels, but that it's 5.4" x 4.06" at 300pp and the "pixel dimensions" add up to 895KB?
    (Then, when I place it in InDesign, at 100%, it measures around 2.1" x 1.6"? What's going on? If I input those dimensions into the Image Size dialogue box in PS, without resampling, it would have to be 750.25ppi. Obviously it's not.)
    How big is this file really? Which program do I trust...windows explorer or photoshop?

    The ppi resolution is simply a number stored with the file to indicate how large to display the image. The height and width in pixels are part of the image data itself. So the pixel dimensions are always the number to trust.
    You can open an image in Photoshop and in Image Size change the resolution (ppi) and if you don't check Resample Image the actual image data don't change at all, only the number stating the pixels per inch.
    The reason the Pixel Dimensions size in KB is different in Photoshop vs. Explorer is that the file is likely a Jpeg, which is compressed. When Photoshop calculates pixel dimensions, it does this based on an uncompressed file (each pixel=3 bytes for an 8-bit RGB image.) When Jpeg compression is used, a pixel can be much less than 3 bytes, and the actual number varies depending on the image quality and how detailed the image is.
    To see this, save your image as an uncompressed Tiff format and the size will very closely match the pixel dimensions. But if saved as a Jpeg, it will be smaller but still the same height and width and the same ppi.
    If you are using CS3, it automatically uses a form of lossless compression if saving in PSD format with "Maximize Compatibility" disabled. So in this case the file size will also be smaller than the pixel dimensions number, but if saved in Tiff, it will match that number instead.

  • Relation between image size, resolution and pixels

    I would like to increase the size of image by using PSE9.
    For sample existing image had: width (W) 6.073", height (H) 7.683", resolution 300, pixels W 1822, H 2305.
    A situation) when I changed the image to W 8, H10 and click on RESAMPLE the resolution on changed but number of pixels increase to W 2400  and
       H 3036
    B situation) Image size W 8, H 10 and NO ACTIVATED RESAMPLE. Now resolution reduced to 227 and number of pixel NO CHANGED from original
       W 1822, H 2305
    In my understanding if image blow up the number of pixels will be same as original and only the distance between pixels will be increase. So, resolution should
    be dropped.
    Now the question: How in sample A increase number of pixels? From where they come?
    More realistic looks sample B.
    Now other way: I used crop - make original image smaller. So, the number of pixels should degrees and resolution NO CHANGED. But PSE 9 shown number of pixels same and resolution increased.
    Is it right?
    What is wrong or right in above explanation?
    Can visible find the difference between samples A & B on computers monitor? I tried blow up sample B by 10 times and still no differences on screen,It is because resolution of monitor to low?

    A. Resample means elements adds pixels to the existng pixels to increase image size
        and\or resolution and subtracts pixels to downsize. Usually resampling to make an image
        smaller is okay, but resampling to make an image bigger can result in loss of quality.
        Of course that doesn't mean you shouldn't do it, just something to keep in mind.
    B. Leaving the resample box unchecked, elements only changes resolution (print size)
        and doesn't change the actual number of pixels (harm the image) so the image will
        be and look the same on your monitor.
    Usually a resampled image will be of lower quality than a non resampled image because
    elements has to make pixels to upsize and subtract pixels to downsize.
    Elements uses the resampling method choosen in the image size dialog to determine how,
    with one of the bicubic choices being the best for photos.
    Elements, as far as i know, uses the standard bicubic mehod for the resampling with the crop tool.
    A more detailed explanation:
    http://kb2.adobe.com/cps/331/331327.html
    MTSTUNER

  • How to reduce image size while maintaining proportions?

    Thank you in advance for reading this.
    I was given an image with these dimensions:  w: 13.89  x h: 5.56 inches
    I'm being asked to make it fit these dimensions:  w: 8.5 x h: 5.47 inches
    I cannot figure out how to achieve this without the picture looking stretched, in terms of it's height. Everything looks constrained when you just do the image or canvas resize...any help/advice is greatly appreciated!

    Because the Aspect Ratios are different you will need to crop it and you will lose quite a bit of the image.  You can first scale the image to have a height of 5.47" using menu Image>Image Size.  In the Image size dialog un-check Resample and set the print height to 5.47" click OK this will set the Image's DPI resolution to print the image 5.47" high.  Next set the Rectangle marquee tool to use mode fixed size set the width to 8.5" and the height to 5.47" then click on the top left corner of the image.  You will see a selection the size you want. Use the arrow keys to move the selection for the best composition then use menu Image>Crop.   You will be losing  over 4" of the images width....

  • Image size reduction without losing resolution

    I am creating marketing materials and product labels for my company using Elements 9. I am not a Photoshop expert but I have a reasonable knowledge of the program. I need to resize certain assets such as logos and paste them onto various documents. The problem I am having is that no matter what method I use to resize, they always lose resolution and appear pixelated and/or blurry in the final printed version.
    Normally I receive the assets in a hi-res image. It could be a jpeg or bitmap or any other number of format. I will open it in Elements, select it and remove the background via the Magic Wand>Layer Via Cut, and delete the background layer.
    From there, I have tried everything from the simple select, grab the corner and manually drag inwards method, to using Image>Resize>Image Size and filling in the fields. When I performed the latter, I typed in 300dpi, made sure Constrain Proportions was turned on, checked Resample, and selected Bicubic Sharper, and entered the size in inches. Then I copy/paste into the document, and it looks fine. I save, which normally opens up Reader and I print from there. The printed image looks great except for any logos I resized, which look awful. I also tried printing from within Elements, but it won't do it without giving me a message first saying that the document will print at less than 200dpi, which is obviously not desirable.
    One I paste the image onto the document, the Image Size>Resize becomes unusable because I can't seem to select just the logo - even with the bounding box clearly visable around the logo, resizing causes the entire document to be affected.
    I have tried many combinations of selecting/deselecting every option I can find, including Alias/Anti-Alias (which for some reason sometimes doesn't seem selectable at all). I've scoured forums and tutorials for help on this, and have tried every method I could find. In the end, nothing has worked. There has got to be a way to do this. Our 30 day trial is almost over and we went ahead and purchased the program without knowing whether we could resolve this issue - if we can't, it will be pretty much useless to us. Please help me so I can tell my boss he didn't just waste company money on this program!
    In short, my question is, what is the correct (or best) method for reducing image size? Please be detailed - and thank you! 

    Thanks for the reply Jon, but unfortunately I ended up with the same result as MTSTUNER said (using the Crop Tool).
    MTSTUNER, that definitely helped. The problem must have been in pasting, which as you said brings a "non-smart" image over. I was even able to resize a bit on the new document without losing any clarity whatsoever. Very helpful - THANK YOU!

  • Illegal Image Size

    Hi, having returned to basic J3D bits and bobs for a few years now and I'm having some issues loading a texture.
    After having read through a few tutorials I have put together the following code. It simply creates a QuadArray of 4 points, sets the texture coordinates (which I don't know if I have done correct i.e., please note the first parameter, as the method I used to use is deprecated now) then apples and image of 64x64 pixels, a multiple of 2 - which i believe is required by J3D.
    private Shape3D loadTexture() {
            QuadArray plane = new QuadArray(4,GeometryArray.COORDINATES|GeometryArray.TEXTURE_COORDINATE_2);
            Point3f p = new Point3f();
            p.set(-1.0f,1.0f,0.0f);
            plane.setCoordinate(0,p);
            p.set(-1.0f,-1.0f,0.0f);
            plane.setCoordinate(1,p);
            p.set(1.0f,-1.0f,0.0f);
            plane.setCoordinate(2,p);
            p.set(1.0f,1.0f,0.0f);
            plane.setCoordinate(3,p);
            TexCoord2f q = new TexCoord2f();
            q.set(0.0f,1.0f);
            plane.setTextureCoordinate(0,0,q);
            q.set(0.0f,0.0f);
            plane.setTextureCoordinate(0,1,q);
            q.set(1.0f,0.0f);
            plane.setTextureCoordinate(0,2,q);
            q.set(1.0f,1.0f);
            plane.setTextureCoordinate(0,3,q);               
            URL textureURL = getClass().getResource(TEXTURE_LOCATION);
            TextureLoader loader = new TextureLoader(textureURL,this);
            ImageComponent2D image = loader.getImage();
            Texture2D texture = new Texture2D();
            texture.setImage(0,image);
            Appearance appearance = new Appearance();
            appearance.setTexture(texture);               
            Shape3D shape = new Shape3D(plane,appearance);
            return shape;
        }Any help working out why I am getting the following exception would be greatly appreciated:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Texture:illegal image size
    at javax.media.j3d.TextureRetained.checkImageSize(TextureRetained.java:392)
    at javax.media.j3d.TextureRetained.initImage(TextureRetained.java:337)
    at javax.media.j3d.Texture.setImage(Texture.java:960)
    Thanks

    Look at the code in the file "TexturedPlane.java", an example of the Java3d API.
    Notice the comment "// can't use parameterless constuctor"... this solved this illegal size issue for me.
    Appearance createAppearance(String filename) {
            Appearance appear = new Appearance();
            System.out.println("TexturedPlane attempt to load file: "+filename);
            TextureLoader loader = new NewTextureLoader(filename);
            ImageComponent2D image = loader.getImage();
            if(image == null) {
                    System.out.println("load failed for texture: "+filename);
            System.out.println("Image width  = " + image.getWidth());
            System.out.println("Image height = " + image.getHeight());
            // can't use parameterless constuctor
            Texture2D texture = new Texture2D(Texture.BASE_LEVEL, Texture.RGBA,
                                              image.getWidth(), image.getHeight());
            texture.setImage(0, image);
            texture.setEnable(true);
            texture.setMagFilter(Texture.NICEST);
            appear.setTexture(texture);
            appear.setTransparencyAttributes(
               new TransparencyAttributes(TransparencyAttributes.FASTEST, 0.1f));
            return appear;
        }

Maybe you are looking for

  • How to Create a PDF Document and apply Digital Signature in C# using the Adobe SDK?

    Hi Everybody! I have to do two distinct tasks here: 1) How can I create a PDF document using the Adobe SDK in my .NET Applications(C# - 2.0)? I just need a basic sample to create a document with a simple text, for example. I did not find any useful i

  • Problem with AS3

    Hello, I'm still learning Flash and Action Script 3, however i decided to try and create a game for a class. I have run into a problem, which I'm not sure how to fix. When I navigate to the second frame of the movie and use the buttons I recieve "Typ

  • Brush size acting up

    Hello guys this is a question I want to ask to you all. when I changed the brush size and paint it looks bigger/smaller but the cursor itself stays the same width other times as the brush got bigger the circle got bigger now its not so its hard to se

  • Problem Facing while analyzing Dim/Fact Table % using RSRV

    Hi All, When we analyzing the infocube in RSRV to see percentage of Dimension tables, system is showing 0% for all the dimensions and also for Fact tables. But data is existing in fact table of infocube and also in dimensions tables, when we see in S

  • Captcha message tag

    I am using jcaptcha in struts. Whenever jcaptcha test failed then I am getting error as "You failed jcaptcha test". How can I change this error message of jcaptcha as " write the same displayed in the image " or whatever i want. Please guide me. Than