Want to smooth loaded images (jpg) in flash8

i want to smooth loaded images (jpg) in flash8
let's say that i have one layer, one frame and the following
AS:
_root.loadMovie("q.jpg");
the _root could be an object, but the behavior is the same
so in flash7 CTRL+ENTER, right click and zoom ---> RESULT:
zoom with image interpolation (like photoshop bicubic resample)
but in flash8 CTRL+ENTER, right click and zoom --->
RESULT: zoom with NO image interpolation (like photoshop nearest
nei ghbor resample)
why?????
i have looked in help but all i can find is somthing refering
about images in the library. I want external jpgs!!!
i have done a slideshow with setable tranzitions (fade, blur,
moving, zoom in/out, external loaded masking)
here is some the important part of the my code (not important
for my problem, but I just want to say that i've worked about 1-2
days and i want to make it better. is frustating that i have blur,
fade, gradient transparency (blending) and not a smooth image):
Gtime=getTimer(); //global timmer
///////////////////////////////ia datele generale, daca cele
particulare lipsesk
/*Ttrans=eval("q.tt")-0;*/
if(eval("q.tt"+pidx))Ttrans=eval("q.tt"+pidx)-0;
/*Tfoto=eval("q.tf")-0;*/
if(eval("q.tf"+pidx))Tfoto=eval("q.tf"+pidx)-0;
/*sv=eval("q.sv")-0;*/
if(eval("q.sv"+pidx))sv=eval("q.sv"+pidx)-0;
/*sk=eval("q.sk")-0;*/
if(eval("q.sk"+pidx))sk=eval("q.sk"+pidx)-0;
/*xv=eval("q.xv")-0;*/
if(eval("q.xv"+pidx))xv=eval("q.xv"+pidx)-0;
/*yv=eval("q.yv")-0;*/
if(eval("q.yv"+pidx))yv=eval("q.yv"+pidx)-0;
/*xk=eval("q.xk")-0;*/
if(eval("q.xk"+pidx))xk=eval("q.xk"+pidx)-0;
/*yk=eval("q.yk")-0;*/
if(eval("q.yk"+pidx))yk=eval("q.yk"+pidx)-0;
/*rv=eval("q.rv")-0;*/
if(eval("q.rv"+pidx))rv=eval("q.rv"+pidx)-0;
/*rk=eval("q.rk")-0;*/
if(eval("q.rk"+pidx))rk=eval("q.rk"+pidx)-0;
/*xbk=eval("q.xbk")-0;*/
if(eval("q.xbk"+pidx))xbk=eval("q.xbk"+pidx)-0;
/*ybk=eval("q.ybk")-0;*/
if(eval("q.ybk"+pidx))ybk=eval("q.ybk"+pidx)-0;
/*xbv=eval("q.xbv")-0;*/
if(eval("q.xbv"+pidx))xbv=eval("q.xbv"+pidx)-0;
/*ybv=eval("q.ybv")-0;*/
if(eval("q.ybv"+pidx))ybv=eval("q.ybv"+pidx)-0;
/*mask=eval("q.mask");*/
if(eval("q.mask"+pidx))mask=eval("q.mask"+pidx);
if(trans==0 && Gtime>Ftime+Tfoto*1000){
//retain values
aux2=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000);
Ttrans2=Ttrans;
Tfoto2=Ttrans;
sv2=sv;sk2=sk;
xv2=xv;yv2=yv;
xk2=xk;yk2=yk;
rv2=rv;rk2=rk;
xbv2=xbv;ybv2=ybv;
xbk2=xbk;ybk2=ybk;
//end retain values
Ttime=Gtime;
trans=1;//transition
if(p=="p1"){
p="p2";pp="p1";
}else{
p="p1";pp="p2";
pidx++;
if(eval("q.p"+pidx)==undefined){
end=1;
//gotoAndStop(6);
}else{
p1.swapDepths(p2);
loadMovie(fotofolder+eval("q.p"+pidx),eval(p+".p.p"));
eval(p)._xscale=eval(p)._yscale=100;
eval(p)._rotation=0;
if(trans==1 && Gtime>Ttime+Ttrans*1000){
Ftime=Gtime;
trans=0;//not transition
//tranzition
if(trans==1){
if(mask.length>3)
eval(p)._alpha=100;
else
eval(p)._alpha=(Gtime-Ttime)*100/(Ttrans*1000);
aux=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000)
eval(p)._x=xv*aux+xk;
eval(p)._y=yv*aux+yk;
eval(p)._xscale=eval(p)._yscale=sv*aux+100+sk;
eval(p)._rotation=rv*aux+rk;
blur.blurX=aux*xbv+xbk;
blur.blurY=aux*ybv+ybk;
eval(p).p.p.filters = [blur];
//intarzierea
aux=aux+aux2;
eval(pp)._x=xv2*aux+xk2;
eval(pp)._y=yv2*aux+yk2;
eval(pp)._xscale=eval(pp)._yscale=sv2*aux+100+sk2;
eval(pp)._rotation=rv2*aux+rk2;
if(!end)gotoAndPlay(_currentframe-1);
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

See
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html
danredman wrote:
> i want to smooth loaded images (jpg) in flash8
>
> let's say that i have one layer, one frame and the
following AS:
>
_root.loadMovie("q.jpg");
>
> the _root could be an object, but the behavior is the
same
>
> so in flash7 CTRL+ENTER, right click and zoom --->
RESULT: zoom with image
> interpolation (like photoshop bicubic resample)
> but in flash8 CTRL+ENTER, right click and zoom --->
RESULT: zoom with NO image
> interpolation (like photoshop nearest nei ghbor
resample)
>
> why?????
>
> i have looked in help but all i can find is somthing
refering about images in
> the library. I want external jpgs!!!
> i have done a slideshow with setable tranzitions (fade,
blur, moving, zoom
> in/out, external loaded masking)
>
>
> here is some the important part of the my code:
>
> Gtime=getTimer(); //global timmer
>
> ///////////////////////////////ia datele generale, daca
cele particulare
> lipsesk
> /*Ttrans=eval("q.tt")-0;*/
if(eval("q.tt"+pidx))Ttrans=eval("q.tt"+pidx)-0;
> /*Tfoto=eval("q.tf")-0;*/
if(eval("q.tf"+pidx))Tfoto=eval("q.tf"+pidx)-0;
> /*sv=eval("q.sv")-0;*/
if(eval("q.sv"+pidx))sv=eval("q.sv"+pidx)-0;
> /*sk=eval("q.sk")-0;*/
if(eval("q.sk"+pidx))sk=eval("q.sk"+pidx)-0;
> /*xv=eval("q.xv")-0;*/
if(eval("q.xv"+pidx))xv=eval("q.xv"+pidx)-0;
> /*yv=eval("q.yv")-0;*/
if(eval("q.yv"+pidx))yv=eval("q.yv"+pidx)-0;
> /*xk=eval("q.xk")-0;*/
if(eval("q.xk"+pidx))xk=eval("q.xk"+pidx)-0;
> /*yk=eval("q.yk")-0;*/
if(eval("q.yk"+pidx))yk=eval("q.yk"+pidx)-0;
> /*rv=eval("q.rv")-0;*/
if(eval("q.rv"+pidx))rv=eval("q.rv"+pidx)-0;
> /*rk=eval("q.rk")-0;*/
if(eval("q.rk"+pidx))rk=eval("q.rk"+pidx)-0;
> /*xbk=eval("q.xbk")-0;*/
if(eval("q.xbk"+pidx))xbk=eval("q.xbk"+pidx)-0;
> /*ybk=eval("q.ybk")-0;*/
if(eval("q.ybk"+pidx))ybk=eval("q.ybk"+pidx)-0;
> /*xbv=eval("q.xbv")-0;*/
if(eval("q.xbv"+pidx))xbv=eval("q.xbv"+pidx)-0;
> /*ybv=eval("q.ybv")-0;*/
if(eval("q.ybv"+pidx))ybv=eval("q.ybv"+pidx)-0;
> /*mask=eval("q.mask");*/
if(eval("q.mask"+pidx))mask=eval("q.mask"+pidx);
>
>
> /
>
>
> if(trans==0 && Gtime>Ftime+Tfoto*1000){
> //retain values
> aux2=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000);
> Ttrans2=Ttrans;
> Tfoto2=Ttrans;
> sv2=sv;sk2=sk;
> xv2=xv;yv2=yv;
> xk2=xk;yk2=yk;
> rv2=rv;rk2=rk;
> xbv2=xbv;ybv2=ybv;
> xbk2=xbk;ybk2=ybk;
> //end retain values
> Ttime=Gtime;
> trans=1;//transition
>
> if(p=="p1"){
> p="p2";pp="p1";
> }else{
> p="p1";pp="p2";
> }
> pidx++;
> if(eval("q.p"+pidx)==undefined){
> end=1;
> //gotoAndStop(6);
> }else{
> p1.swapDepths(p2);
> loadMovie(fotofolder+eval("q.p"+pidx),eval(p+".p.p"));
> eval(p)._xscale=eval(p)._yscale=100;
> eval(p)._rotation=0;
> }
> }
> if(trans==1 && Gtime>Ttime+Ttrans*1000){
> Ftime=Gtime;
> trans=0;//not transition
> }
> //tranzition
>
> if(trans==1){
> if(mask.length>3)
> eval(p)._alpha=100;
> else
> eval(p)._alpha=(Gtime-Ttime)*100/(Ttrans*1000);
> }
> aux=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000)
> eval(p)._x=xv*aux+xk;
> eval(p)._y=yv*aux+yk;
> eval(p)._xscale=eval(p)._yscale=sv*aux+100+sk;
> eval(p)._rotation=rv*aux+rk;
> blur.blurX=aux*xbv+xbk;
> blur.blurY=aux*ybv+ybk;
> eval(p).p.p.filters = [blur];
> //intarzierea
> aux=aux+aux2;
> eval(pp)._x=xv2*aux+xk2;
> eval(pp)._y=yv2*aux+yk2;
> eval(pp)._xscale=eval(pp)._yscale=sv2*aux+100+sk2;
> eval(pp)._rotation=rv2*aux+rk2;
>
> if(!end)gotoAndPlay(_currentframe-1);
>

Similar Messages

  • Loading Images jpg, gif, png

    What is the most effective way to load an image in my application?
    Bellow is how i am currently loading the image:
    private void drawMap() {
    Graphics g = this.picturePanel.getGraphics();
    Image img = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/images/claymonmap.gif"));
    g.drawImage(img,0,0,this);
    This method works however it takes sometime for the image to show. The method is called from a button action, and the image wont display unless I have pressed the button alteast two times. I do not need to do an manipulation to the image simply display it.
    I was hopeing for a more instantaneous result.
    Your input would be greatly appreciated.

    I changed to using imageicon and i found that its is much quicker thanks.
    however i am having troubles with the method bellow. When i click a certain button the focus on a tabbed pane goes to buildingPicturePanel, and the picture flashes up for a microsecond and then the panel goes blank again. The picture wont show till i click the button again.
    void getBuildingPic(String id) {
    Graphics gBuilding = this.buildingPicturePanel.getGraphics();
    ClassLoader cldr = this.getClass().getClassLoader();
    String pathBuildPic = "images/"+ id +".jpg";
    java.net.URL imageURL = cldr.getResource(pathBuildPic);
    ImageIcon img = new ImageIcon(imageURL);
    img.paintIcon(this.buildingPicturePanel, gBuilding, 0, 0);
    could this be becuase the way i am painting the icon?

  • How to dynamically load images into Flash

    I have a movie clip on the stage that I want to dynamically
    load images into (that constantly change), how would I go about
    doing this? Thanks.

    Use the Loader class to load in images.
    Then use addChild to add the Loader class into your MovieClip
    on the stage.
    As far as "constantly change" what
    do you mean by that? You could use setInterval, ther enterFrame
    event, or any other means to trigger a new image to be loaded into
    the Loader instance.
    Finally, you can use the Tween class to create some nice
    effects for the images (fade it, blur in, photo blend, masks,
    etc)

  • How to load image data into cube?? Is it possible??

    How to load image data into cube?? Is it possible??
    Any sugession??

    Hi Andre,
    Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
    which can take blob's. so it would be possible to store the binary data.
    If any one has faced this situation can reply.to this ques.
    can post the step to load image(jpg/bmp or any image format) data in to info cube??
    hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
    thanks Andre

  • Loading a jpg image into my java 3d scene

    public class Example3D extends JApplet {
        public BranchGroup createSceneGraph() {
         // creating the universe
         BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
         BranchGroup objRoot = new BranchGroup();
         TransformGroup mainTG = new TransformGroup();          
         mainTG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         mainTG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         // Now you can add new elements to the mainTG
         ColorCube c2 = new ColorCube(.1);
         mainTG.addChild(c2);
         objRoot.addChild(mainTG);
         // Create the rotate behavior node
         MouseRotate behavior = new MouseRotate();
         behavior.setTransformGroup(mainTG);
         objRoot.addChild(behavior);
         behavior.setSchedulingBounds(bounds);
         // Create the zoom behavior node
         MouseZoom behavior2 = new MouseZoom();
         behavior2.setTransformGroup(mainTG);
         objRoot.addChild(behavior2);
         behavior2.setSchedulingBounds(bounds);
         // Create the translate behavior node
          MouseTranslate behavior3 = new MouseTranslate();
         behavior3.setTransformGroup(mainTG);
         objRoot.addChild(behavior3);
         behavior3.setSchedulingBounds(bounds);
         objRoot.compile();
         return objRoot;
        public Example3D() {
         Container cp = getContentPane();
         cp.setLayout(new BorderLayout());
         Canvas3D c = new Canvas3D(SimpleUniverse.
                          getPreferredConfiguration() );
         cp.add("Center", c);
         BranchGroup scene = createSceneGraph();
         SimpleUniverse u = new SimpleUniverse(c);
         u.getViewingPlatform().setNominalViewingTransform();
         u.addBranchGraph(scene);
        public static void main(String[] args) {       
         new MainFrame(new Example3D(), 512, 512);
    }as a test, i added a cube into the scene and it works fine. but i also want to add a 2d jpg image into the scene too, its called flatTable.jpg
    i hope someone can help me, thanks guys.

    Check out this link:
    http://java3d.j3d.org/tutorials/raw_j3d/chapter1/textures.html
    It should give you enough information about loading textures with java3d.

  • How do i backup the list of load images automatically exceptions under Options- Content. I want to transfer to another comp without re-adding one at a time

    How do i backup the list of load images automatically exceptions under Options->Content. I want to transfer to another comp without re-adding one at a time. EVen if there is no way to backup, what is the system file for Firefox that stores these, so i can transfer this file or open it in an XML or similar editor to copy them out?

    The permissions.sqlite file stores 'allow' and 'block' exceptions for cookies, images, pop-up windows, and extensions (software) installation.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    See also:
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • Smooth load of enternal images

    Hey folks,
    I have a slideshow that I want to play fullscreen, but there
    are a lot of photos, so I don't want to load them all in at the
    start. However, when I load them on demand, the slideshow will
    freeze for a moment while they load in the background. I know there
    must be something I can do differently so that these can load in
    the background, and just fire an event when they're ready, but I
    can't seem to find what I'm looking for. Any ideas?
    - B

    BSpero:
    Without downloading all the images during the preload stage
    there isn't a 100% sure fire work around for preventing the freeze
    as a user clicks on an image however there is a possible
    compromise. You need to create an image loading queue class to
    manage the loading of the images in the background once the movie
    is displayed. The queue will progressively load the image assets in
    the background as the movie is playing. The queue needs to be
    designed to handle events from the user that will halt the current
    image being loaded and move the current non loaded image to the top
    of the queue. i.e.
    < load first image and display >
    < movie starts >
    < begin loading queue >
    user clicks image,
    < is image loaded ? >
    - If yes then display
    - If no then halt current loading image
    < search loader queue for matching image id >
    < load image >
    < once image loaded display then go back to beginning of
    queue and start >
    Hope this helps

  • Sandbox error, crossdomain loading Images dynamically

    Hi!
    I have a following image:
    <mx:Image id="listakuva1"
    source="images/autoListasivu.jpg"
    complete="handleImageComplete(event)" />
    And because I have to scroll the image, I have to turn the
    smoothing on when complete:
    private function handleImageComplete(event: Event): void {
    var bitmap: Bitmap = ((event.target as Image).content as
    Bitmap);
    if (bitmap != null) {
    bitmap.smoothing = true;
    This works fine. But then I want to change the image when
    user does something:
    listakuva1.load("new image in another domain via URL");
    And it gives me security sandbox error. I googled and I found
    that I should put:
    checkPolicyFile = true;
    to somewhere but I can't figure out WHERE!
    The images are still loaded without the warning but the
    smoothing-function is not working.
    PLS Help.
    BR Timo

    Hi,
    It would be great if you can post a simple sample. I can try
    it out on a Mac and let you know.

  • Smoothing external images

    how to load images before creating the image class for enable
    smoothing?
    In this examples the image is embeded. but i need to load the
    image from {data.image}
    examples:
    The first approach uses the BitmapAsset class, where init()
    is called on creationComplete as follows:
    import mx.core.BitmapAsset;
    [Bindable]
    public var mySmoothImage:BitmapAsset;
    [Bindable]
    [Embed(source="assets/image.jpg")]
    public var myImage:Class;
    public function init():void
    smoothImage = BitmapAsset(new myImage());
    smoothImage.smoothing = true;
    The second approach is somewhat more compact, and uses a
    class level embed that extends Bitmap, as follows:
    [Embed(source="Image.jpg")]
    public class smoothImage extends Bitmap
    public function smoothImage()
    smoothing = true;

    If u want to smooth external loaded images use this metod to make it smooth on "complete" event of image all  image loaders  where ever you need the image smoothing . I have implemented it in my flex project . Taken code from this article: http://askmeflash.com/article_m.php?p=article&id=4

  • How to load a jpg into my movie ???

    I want to load an image stored on my pc into my swf file. i
    know that i can use the loadMovie() method. but i didnt know how to
    enter the url of the target file. For example i have the file in
    the following directory - C:\Documents and Settings\Admin\My
    Documents\image.jpg - how can i load this file into my movie ???
    and THANX...

    aha, ok now i have a problem in duplicating nested movie
    clips. like if i have made a movieclip using the code (lets name it
    OUTSIDE) and another one inside(lets name it INSIDE) it, when i
    duplicate the movieclip OUTSIDE the INSIDE one doesnt exist in the
    new copy. i think the reason is something related to the depth but
    i'm not sure where is the problem. here is an example:
    this.createEmptyMovieClip("line",this.getNextHighestDepth());
    line.createEmptyMovieClip("lineIn",this.getNextHighestDepth());
    line.lineIn.lineStyle(10);
    line.lineIn.lineTo(100,100);
    line.duplicateMovieClip("line2",this.getNextHighestDepth());
    line2._x = 150;
    when i duplicate the the movieclip (line), the movieclip
    (lineIn) doesnt exist inside the new copy which is (line2)

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • How to load images from client side when the swf is hosted on a server without uplaoding it to server?

    I'm trying to build a online image resize tool.
    problem i face are:
    1. I build a button that allow user to browse the file. Once
    file is selected, it doesnt show full path.
    2. lets say if it shows fullpath, but i try to load it into a
    movieclip, and it doesnt work because the swf file is located at
    the server and not the client's place.
    3. as far as i know, flash can only load images which is
    located in the same server or internet.
    4. if i use php, asp, cgi.. it can only allow me to 1st
    upload the image then resize later, but this is not wat i want.
    5. I need to 1st resize then upload later, because if i have
    100 and more photos taken from digicam, it's going to be very slow
    and heavy.
    What i have tested:
    1. upload "image3.jpg" into the same directory as the
    "viewer.swf", and it works.
    2. do not upload the swf to the server, but run locally from
    the user's computer and open "image3.jpg" and it works.
    3. upload the swf to the server and open "image3.jpg" from
    the user's computer and IT DOESN"T WORK!
    please help me out.
    Thanks~!

    use this php code.
    for flash php image prosses.
    flash file
    import flash.display.BitmapData;
    shaF.onPress = function() {
    output();
    function output() {
    snap = new BitmapData(mc._width, mc._height);
    snap.draw(mc);
    var pixels:Array = new Array();
    var w:Number = snap.width;
    var h:Number = snap.height;
    for (var a = 0; a<=w; a++) {
    for (var b = 0; b<=h; b++) {
    var tmp = snap.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var output:LoadVars = new LoadVars();
    output.img = pixels.toString();
    output.height = h;
    output.width = w;
    output.send("show.php", "output", "POST");
    stop();
    PHP file (show.php)
    <?php
    $data = explode(",", $_POST['img']);
    $width = $_POST['width'];
    $height = $_POST['height'];
    $image=imagecreatetruecolor( $width ,$height );
    $background = imagecolorallocate( $image ,0 , 0 , 0 );
    //Copy pixels
    $i = 0;
    for($x=0; $x<=$width; $x++){
    for($y=0; $y<=$height; $y++){
    $int = hexdec($data[$i++]);
    $color = imagecolorallocate ($image, 0xFF & ($int
    >> 0x10), 0xFF & ($int >> 0x8), 0xFF & $int);
    imagesetpixel ( $image , $x , $y , $color );
    //$font = imageloadfont('arial.ttf');
    $font = 'arial.ttf';
    // $text_color = imagecolorallocate($image, 233, 14, 91);
    $black = imagecolorallocate($image, 0, 0, 0);
    //imagestring($image, $font, 5, 5, "A Simple Text String",
    $text_color);
    imagettftext($image, 12, 0, 10, 20, $black, $font, "A Simple
    Text String");
    //Output image and clean
    //header("Content-Type: image/png");
    imagepng($image,"finoy.png");
    imagedestroy( $image );
    ?>
    <html>
    <body>
    <img src="finoy.png" width="159" height="159" />
    </body>
    </html>

  • Custom loading image JSP dynpage

    Hello,
    Wa have created a jsp dynpage, and want to show a custom loading image. I other applications (appintegrator) we have succesfully changed the loading image by exporting the theme that we are currently using, change the loading_ani.gif image and re-importing the theme. This change has no effect on the loading image of the JSP dynpage, it is still the one supplied by SAP. I checked the url of this image and got the following https://host:port/htmlb/mimes/common/loading/loading_ani.gif, so I tried changing the loeding image that is stored in the htmlb par file, but there was no visible result when loading the application, or when loding the direct url of this image. Can anyone tell me where I can change the loading image of the JSP dynpages?
    Kind Regards
    Timon Van Soom

    Juhi Bhatnagar
    Greetings!!!
    May i know , what is the procedure need to be followed to replace the default Loading ICON with our custom image.
    2. Does our custome image should be a image file (like jpg, png) or its like a command
    Kindly share the procedure for this...
    Appreciate your response in advance'
    Thanks

  • Check printing - failed to load image

    hello
    i have an issue with printing checks. a long standing one.
    my problems started when i put an image on a check. i wanted to add a signature image. once i did that, the popup that came up when i print a check did not come up. only for one user. i tried to solve the problem but it never got sorted out. so i created another username and removed the old one and it was working fine.
    next i had an issue with the check not printing on blank pages for overruns only for one customer. to test why this was happening, i went to print preferences and and tried changing the maximum lines from 25 to 20. it popped a message saying 'failed to load image'. i ignored it. after that, i have now started to get the same problem of not getting the confirmation message when a check is printed.
    why is this happening? is my only solution to delete this user and recreate one? any suggestions?

    Hi,
    For the image related issue:
    +Since it is a User specific issue,we would require the difference in permissions and security settings for that particular user and for a user for which it is working.
    +What is the format of the picture (.JPG, >GIF etc.)
    +If this happens only for one super user then try to create a new super user and test.
    Regards,
    Abhinav Banerjee
    SAP Business One Forums Team
    Edited by: Abhinav Banerjee on Nov 22, 2008 3:20 AM

Maybe you are looking for