Draw circles,images in flex

How can we draw circles,images in flex? (ex as in
ms-paint)

http://livedocs.adobe.com/flex/3/html/help.html?content=Drawing_Vector_Graphics_1.html

Similar Messages

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • How to use the Rectangle class to draw an image and center it in a JPanel

    I sent an earlier post on how to center an image in a JPanel using the Rectangle class. I was asked to send an executable code which will show the malfunction. The code below is an executable code and a small part of a very big project. To simplifiy things, it is just a JFrame and a JPanel with an open dialog. Once executed the JFrame and the FileDialog will open. You can then navigate to a .gif or a .jpg picture and open it. What I want is for the picture to be centered in the middle of the JPanel and not the upper left corner. It is also important to stress that, I am usinig the Rectangle class to draw the Image. The region of interest is where the rectangle is created. In the constructor of the CenterRect class, I initialize the Rectangle class. Then I use paintComponent in the CenterRect class to draw the Image. The other classes are just support classes. The MyImage class is an extended image class which also has a draw() method. Any assistance in getting the Rectangle to show at the center of the JPanel without affecting the size and shape of the image will be greatly appreciated.
    I have divided the code into three parts. They are all supposed to be on one file in order to execute.
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class CenterRect extends JPanel {
        public static Rectangle srcRect;
        Insets insets = null;
        Image image;
        MyImage imp;
        private double magnification;
        private int dstWidth, dstHeight;
        public CenterRect(MyImage imp){
            insets = getInsets();
            this.imp = imp;
            int width = imp.getWidth();
            int height = imp.getHeight();
            ImagePanel.init();
            srcRect = new Rectangle(0,0, width, height);
            srcRect.setLocation(0,0);
            setDrawingSize(width, height);
            magnification = 1.0;
        public void setDrawingSize(int width, int height) {
            dstWidth = width;
            dstHeight = height;
            setSize(dstWidth, dstHeight);
        public void paintComponent(Graphics g) {
            Image img = imp.getImage();
         try {
                if (img!=null)
                    g.drawImage(img,0,0, (int)(srcRect.width*magnification), (int)(srcRect.height*magnification),
              srcRect.x, srcRect.y, srcRect.x+srcRect.width, srcRect.y+srcRect.height, null);
            catch(OutOfMemoryError e) {e.printStackTrace();}
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Opener().openImage();
    class Opener{
        private String dir;
        private String name;
        private static String defaultDirectory;
        JFrame parent;
        public Opener() {
            initComponents();
         public void initComponents(){
            parent = new JFrame();
            parent.setContentPane(ImagePanel.panel);
            parent.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            parent.setExtendedState(JFrame.MAXIMIZED_BOTH);
            parent.setVisible(true);
        public void openDialog(String title, String path){
            if (path==null || path.equals("")) {
                FileDialog fd = new FileDialog(parent, title);
                defaultDirectory = "dir.image";
                if (defaultDirectory!=null)
                    fd.setDirectory(defaultDirectory);
                fd.setVisible(true);
                name = fd.getFile();
                if (name!=null) {
                    dir = fd.getDirectory();
                    defaultDirectory = dir;
                fd.dispose();
                if (parent==null)
                    return;
            } else {
                int i = path.lastIndexOf('/');
                if (i==-1)
                    i = path.lastIndexOf('\\');
                if (i>0) {
                    dir = path.substring(0, i+1);
                    name = path.substring(i+1);
                } else {
                    dir = "";
                    name = path;
        public MyImage openImage(String directory, String name) {
            MyImage imp = openJpegOrGif(dir, name);
            return imp;
        public void openImage() {
            openDialog("Open...", "");
            String directory = dir;
            String name = this.name;
            if (name==null)
                return;
            MyImage imp = openImage(directory, name);
            if (imp!=null) imp.show();
        MyImage openJpegOrGif(String dir, String name) {
                MyImage imp = null;
                Image img = Toolkit.getDefaultToolkit().getImage(dir+name);
                if (img!=null) {
                    imp = new MyImage(name, img);
                    FileInfo fi = new FileInfo();
                    fi.fileFormat = fi.GIF_OR_JPG;
                    fi.fileName = name;
                    fi.directory = dir;
                    imp.setFileInfo(fi);
                return imp;
    }

    This is the second part. It is a continuation of the first part. They are all supposed to be on one file.
    class MyImage implements ImageObserver{
        private int imageUpdateY, imageUpdateW,width,height;
        private boolean imageLoaded;
        private static int currentID = -1;
        private int ID;
        private static Component comp;
        protected ImageProcessor ip;
        private String title;
        protected Image img;
        private static int xbase = -1;
        private static int ybase,xloc,yloc;
        private static int count = 0;
        private static final int XINC = 8;
        private static final int YINC = 12;
        private int originalScale = 1;
        private FileInfo fileInfo;
        ImagePanel win;
        /** Constructs an ImagePlus from an AWT Image. The first argument
         * will be used as the title of the window that displays the image. */
        public MyImage(String title, Image img) {
            this.title = title;
             ID = --currentID;
            if (img!=null)
                setImage(img);
        public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {
             imageUpdateY = y;
             imageUpdateW = w;
             imageLoaded = (flags & (ALLBITS|FRAMEBITS|ABORT)) != 0;
         return !imageLoaded;
        public int getWidth() {
             return width;
        public int getHeight() {
             return height;
        /** Replaces the ImageProcessor, if any, with the one specified.
         * Set 'title' to null to leave the image title unchanged. */
        public void setProcessor(String title, ImageProcessor ip) {
            if (title!=null) this.title = title;
            this.ip = ip;
            img = ip.createImage();
            boolean newSize = width!=ip.getWidth() || height!=ip.getHeight();
         width = ip.getWidth();
         height = ip.getHeight();
         if (win!=null && newSize) {
                win = new ImagePanel(this);
        public void draw(){
            CenterRect ic = null;
            win = new ImagePanel(this);
            if (win!=null){
                win.addIC(this);
                win.getCanvas().repaint();
                ic = win .getCanvas();
                win.panel.add(ic);
                int width = win.imp.getWidth();
                int height = win.imp.getHeight();
                Point ijLoc = new Point(10,32);
                if (xbase==-1) {
                    xbase = 5;
                    ybase = ijLoc.y;
                    xloc = xbase;
                    yloc = ybase;
                if ((xloc+width)>ijLoc.x && yloc<(ybase+20))
                    yloc = ybase+20;
                    int x = xloc;
                    int y = yloc;
                    xloc += XINC;
                    yloc += YINC;
                    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
                    count++;
                    if (count%6==0) {
                        xloc = xbase;
                        yloc = ybase;
                    int scale = 1;
                    while (xbase+XINC*4+width/scale>screen.width || ybase+YINC*4+height/scale>screen.height)
                        if (scale>1) {
                   originalScale = scale;
                   ic.setDrawingSize(width/scale, height/scale);
        /** Returns the current AWT image. */
        public Image getImage() {
            if (img==null && ip!=null)
                img = ip.createImage();
            return img;
        /** Replaces the AWT image, if any, with the one specified. */
        public void setImage(Image img) {
            waitForImage(img);
            this.img = img;
            JPanel panel = ImagePanel.panel;
            width = img.getWidth(panel);
            height = img.getHeight(panel);
            ip = null;
        /** Opens a window to display this image and clears the status bar. */
        public void show() {
            show("");
        /** Opens a window to display this image and displays
         * 'statusMessage' in the status bar. */
        public void show(String statusMessage) {
            if (img==null && ip!=null){
                img = ip.createImage();
            if ((img!=null) && (width>=0) && (height>=0)) {
                win = new ImagePanel(this);
                draw();
        private void waitForImage(Image img) {
        if (comp==null) {
            comp = ImagePanel.panel;
            if (comp==null)
                comp = new JPanel();
        imageLoaded = false;
        if (!comp.prepareImage(img, this)) {
            double progress;
            while (!imageLoaded) {
                if (imageUpdateW>1) {
                    progress = (double)imageUpdateY/imageUpdateW;
                    if (!(progress<1.0)) {
                        progress = 1.0 - (progress-1.0);
                        if (progress<0.0) progress = 0.9;
    public void setFileInfo(FileInfo fi) {
        fi.pixels = null;
        fileInfo = fi;
    }

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Can only draw circle and square in Illustrator CS5 and Photoshop CS5

    I am experiencing a strange bug that seems to be affecting both Photoshop CS5 and Illustrator CS5. In Illustrator, when I try to draw a rectangle or ellipse I can only draw circles and squares. Also I can't change the color of selected objects. When I try to change its fill nothing happens. I can also only drag objects on the 0, 45 and 90 degree angles. Also I can no longer select off an object by clicking on the artboard. When I click on the artboard nothing happens.
    Similarly in Photoshop I can only draw straight lines using the brush tool. The  marquee tool is also not functioning properly. When I try to use the marquee tool the marching ants form a square but when I release the mouse it selects a rectangular portion. Strangely if I use the marquee tool and make selection I can press the shift key and add to it but this second selection's marching ants are not square but are properly rectangular.
    Since the problem seems to be affecting both Illustrator and Photoshop I'm thinking it's probably some kind of system conflict or perhaps an application running in the background is affecting it. Also if I restart my mac the problem goes away. Unfortunately the problem eventually returns.
    Anyway I'm pretty sure most of the suggested fixes involve systematically going through all the programs running in the background and trying to determine which if any might be affecting Illustrator and Photoshop but I just thought I'd post something in case someone else had the problem or knew of any fixes.
    I'm running CS5 on a MBP.
    Thanks!

    Ok I figured out the problem. It was another application called teleport which lets you control 2 macs with one mouse. It requires a hot key and in my case that was the shift key. Even though it was running it was still affecting me. Had to quit it and restart. If you're having a similar problem I'd check to see you're not running any other applications that can be activated with a hot key.

  • Learning iPhone SDK - Trying to draw an image

    Although I have programmed for Mac in the last years, I have never used Mac-specific technologies as Cocoa (I have programmed more in OpenGL, SDL, and the like).
    Now I am getting started with the iPhone SDK. I'd like to do some OpenGL|ES stuff, but since it is not supported in the Simulator, and you need to join the Developer Program to test stuff on directly on the device (and admission of new members is closed right now), I am focused on other stuff right now, like using Core Graphics for drawing images on the iPhone.
    My application is based on the Cocoa Touch Application template. I left the default code except for a few changes.
    In file "UntitledAppDelegate.m", I have changed the method applicationDidFinishLaunching to:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    contentView = [[[MyView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
    [window addSubview:contentView];
    [window makeKeyAndVisible];
    Then, in the MyView interface file (MyView.h), I have added the attribute "UIImageView* image;" to the class, which is declared as a property, and synthesized.
    In the class implementation (MyView.m), I have changed the method initWithFrame to:
    - (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    self.backgroundColor = [UIColor darkGrayColor];
    image = [self loadImageView:@"box01.png"];
    [self addSubview:image];
    return self;
    loadImageView is a private method I have implemented as:
    - (UIImageView *)loadImageView:(NSString *) imageName {
    UIImage *img = [UIImage imageNamed:imageName];
    UIImageView *theView = [[UIImageView alloc] initWithImage:img];
    return theView;
    Since I have loaded the UIImage, and initialized a UIImageView with it, and the image view is added as a subview of the main view attached to the window, I thought it should be everything needed to draw an image on the screen. But nothing is visible. The screen is simply black when I run this on the Simulator. It doesn't even set the background to dark gray.
    So I need some help with this, I sure that anyone with experience in Mac programming will know how to help me.
    Thank you in advance.
    Message was edited by: Jedive

    I removed the XIB file from the project, but that didn't help. It was a problem with my inexperience with Objective-C. When accessing class properties in a method of the same class, i was not putting "self." before the property (in C++ that's redundant). For example, in the line "window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];". After adding it, it works correctly.

  • What's the RIGHT way to draw an image in the upper left corner?

    I have an NSView in a ScrollView and I'm trying to draw an image in it. The problem is that I want the upper left corner of the image locked to the upper left corner of the frame, instead of the lower left corner, which is what the View wants me to do. I will need to be able to zoom in and out, and rotate.
    currently, I have a kludge of a system where I calculate how much I have to translate my image based on the size of the image and the size of the window. In order to do this, I needed to create an extra view outside the scrollview, so that I could get the size of the window, not including decorations. Then I can calculate the size of the view based on the size of the image and the size of the window, and based on THAT, I can figure out where to translate the image to.
    My only other thought was to use the isFlipped: method, but that ends up reversing my image L-R which is bad.
    Is there another way I should be doing this?
    thanks.

    Ah, the problem is that the content view includes the control panel, and while I'm sure I can get access to the control panel, and find out it's size, and then calculate everything off that, it becomes messy, and my way is easier, and no more messy.
    And I never said this was HARD. I have already DONE it. It's just ugly, and I'm wondering if there is a better way to do it. Translating between coordinate systems is normal, but changing lower left to upper left origin is an artifact of the Mac's history with PDF and PS.
    If the way I'm doing it is the accepted normal way, then fine, just tell me that.

  • How do I draw an image on a JPanel?

    To be honest I have no idea even where to start. I tried hacking through the tutorials but it just didn't help me (normally they do, I don't what's up).
    Anyway, so what I'm trying to do is build a game. The Graphics2D is great for simple shapes but drawing characters is getting kind of ridiculous (tedious + difficult + looks bad). So, I need to figure out how to display an image on a JPanel.
    To that end I have several questions.
    1 - What image type do I use? Like jpeg, bmp, gif, etc.
    2 - How do I make parts of it transparent?
    3 - How do I make it appear on the screen, given some coordinates on the JPanel?

    To draw an image directly to a JPanel given certain coordinates, you have to create a custom JPanel and override its paintComponent() method. Like this:
    class PaintPanel extends JPanel{
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    //painting code goes here}
    }Java can load in and draw GIF and JPEG images. If you decide to use GIF files, any good image editor like Adobe Photoshop should be able to make them transparent for you before the fact. If you want to set transparency within your java program you will have to create a BufferedImage and make certain colors within it transparent, but I would like to know how to do that as much as you do.

  • Can you crop an image in Flex?

    Hi.  I am writing a small Air application in Flex where a bunch of images will be imported at a resolution of 120x80 pixels.  To use them in the application, I need them to be square at 80x80 pixels.  Right now they are squished because I am forcing the 120x80 image to fit into and 80x80 container.  To make it look more professional, I need to crop the images to 80x80 pixels.  Is there a way to do this in Flex, and if so, how?  Thanks.

    Once the images are cropped to 80x80 pixels, the images will be manipulated by rotating and moving them.  Because of this, I thought that cropping them would be a better alternative to masking(I don't know if masking also masks mouse-overs and things like that, which is why I thought about cropping)
    So if anyone knows how to crop an image in Flex, I would love to hear it.  Or if you know of any good resources or tutorials for it, could you point them out.  Thanks.

  • Draw circles in swing..

    hello.
    I'm making a program that draws circles in a frame and has some buttons in another program.
    However, there are some stack overflow errors..
    help please~
    [error messages]
    Exception in thread "main" java.lang.StackOverflowError
    at java.util.Hashtable.get(Hashtable.java:336)
    at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:142)
    at javax.swing.UIDefaults.get(UIDefaults.java:130)
    at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
    at javax.swing.UIDefaults.getColor(UIDefaults.java:380)
    at javax.swing.UIManager.getColor(UIManager.java:590)
    at javax.swing.LookAndFeel.installColors(LookAndFeel.java:58)
    at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:92)
    at javax.swing.plaf.basic.BasicPanelUI.installDefaults(BasicPanelUI.java:49)
    at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
    at javax.swing.JComponent.setUI(JComponent.java:652)
    at javax.swing.JPanel.setUI(JPanel.java:131)
    at javax.swing.JPanel.updateUI(JPanel.java:104)
    at javax.swing.JPanel.<init>(JPanel.java:64)
    at javax.swing.JPanel.<init>(JPanel.java:87)
    at javax.swing.JPanel.<init>(JPanel.java:95)
    at DrawCircle.<init>(DrawCircle.java:7)
    at DrawCircle.<init>(DrawCircle.java:6)
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    public class GUI{
         DrawCircle circle = new DrawCircle(100,100,50);
         private JButton UpButton, DownButton, LeftButton, RightButton, IncreaseButton, DecreaseButton, InputButton;
         public void drawframe(){
                    final JFrame CircleFrame = new JFrame("Frame for Circle");
                    CircleFrame.getContentPane().add(circle);
                    CircleFrame.setSize(200,200);
              CircleFrame.setVisible(true);
              UpButton = new JButton("UP");
              UpButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e){
                                circle.up();
                                    if(circle.getY() - circle.getR() <= 0) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setY(circle.getY() +10);
              RightButton = new JButton("RIGHT");
              RightButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e)     {
                                circle.right();
                                    if(circle.getX() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setX(circle.getX() -10);
              LeftButton = new JButton("LEFT");
              LeftButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                                circle.left();
                                    if(circle.getX() - circle.getR() <= 0) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setX(circle.getX() +10);
              DownButton = new JButton("DOWN");
              DownButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                                circle.down();
                                    System.out.println(circle.getY());
                                    if(circle.getY() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setY(circle.getY() -10);
              IncreaseButton = new JButton("INCREASE");
              IncreaseButton.addActionListener(new ActionListener()     {
                   public void actionPerformed(ActionEvent e)     {
                                circle.increase();
                                    if(circle.getY() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
                                        circle.setR(circle.getR() -10);     
                                    } else if(circle.getX() + circle.getR() >= 500) {
                                        JOptionPane.showMessageDialog( CircleFrame, "Out of window");
              DecreaseButton = new JButton("decrease");
                        DecreaseButton.addActionListener(new ActionListener(){
                                public void actionPerformed(ActionEvent e)     {           
                                    circle.decrease();
              JPanel ButtonPanel = new JPanel();
              ButtonPanel.add(IncreaseButton);
              ButtonPanel.add(DecreaseButton);
              ButtonPanel.add(DownButton);
              ButtonPanel.add(LeftButton);
              ButtonPanel.add(RightButton);
              ButtonPanel.add(UpButton);
              ButtonPanel.setLayout(new BoxLayout(ButtonPanel, BoxLayout.Y_AXIS));
                    JFrame mainFrame = new JFrame("GUI for Circle Drawing");
              mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
                    mainFrame.add(ButtonPanel);
                    mainFrame.pack();
              mainFrame.setVisible(true);
         public static void main(String [] args)     {
              GUI intf = new GUI();
              intf.drawframe();
    }and the DrawCircle Class is
    import java.awt.*;
    import javax.swing.*;
    public class DrawCircle extends JPanel{
         private int x, y, r;
            DrawCircle circle = new DrawCircle(100, 100, 50);
         public DrawCircle( int x , int y , int r){
              this.x = x;
              this.y = y;
              this.r = r;
         public int getR(){
              return r;
         public int getX(){
              return x;
         public int getY(){
              return y;
         public void setX(int x)     {
              this.x = x;
                    repaint();
         public void setY(int y)     {
              this.y = y;
                    repaint();
         public void setR(int r)     {
              this.r = r;
                    repaint();
         public void paint(Graphics g){
              g.clearRect(0,0,400,400);
                    g.drawOval(x-r, y-r, r*2, r*2);
            public void up() {
              circle.setY(circle.getY() -10);
            public void down() {
                    circle.setY(circle.getY() +10);
            public void right() {
                    circle.setX(circle.getX() +10);
            public void left() {
                    circle.setX(circle.getX() -10);
            public void increase() {
                    circle.setR(circle.getR() +10);     
            public void decrease() {
                    circle.setR(circle.getR() -10);     
              

    The problem is that you're constructing a new DrawCircle each time you construct a new DrawCircle, resulting in infinite recursion causing a stack overflow.
    This line:DrawCircle circle = new DrawCircle(100, 100, 50);in your DrawCircle class is causing the problem, do you need it? Remove it and replace references to 'circle' in the class with 'this'.

  • How can I draw an image in the browser using mouse

    I have to draw an image in the browser and have to store a file in the server and I don't know how can I do it. Is there anybody who konw it.

    Components other than applets cannot be downloaded into client machines
    unleess There is a Java Web Start kind of Mechanism present on client and the server also supports
    this .Hence your application is between Applet ---Xdownloadable ApplicationXX ---- traditinal Application

  • Printing document /image using flex 4.5.1 - is it possible?

    Hi respected,
    I want to check one fesibility,
    Printing document or image using flex 4.5.1 - is it possible? I want to develope mobile application (ipad) using Adobe 4.5.1 . So is there any way to handle priniting from app. 
    Regards,
    Madhu

    you can't directly add image to printing class, create custom component  class for image first, then add to printing class as component.

  • Help!How can i draw an image that do not need to be displayed?

    I want to draw an image and save it as an jpeg file.
    first I have to draw all the elements in an image object.I write a class inherit from Class Component,I want to use the method CreateImage,but I get null everytime.And i cannot use the method getGraphics of this object.Thus i can not draw the image.
    when i use an applet,it runs ok.I use panel and frame,and it fails.
    How can i draw an image without using applet,because my programme will be used on the server.
    Thank you.

    you could try this to create the hidden image
    try
              GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
              GraphicsDevice gs = ge.getDefaultScreenDevice();
              GraphicsConfiguration gc = gs.getDefaultConfiguration();
              offImage = gc.createCompatibleImage(100, 100);
              offG = offImage.getGraphics();
          catch(Exception e)
              System.out.println(e.getMessage());
          }

  • Render tiff images in flex

    Hi,
         I'm a new guy to flex.In my project i got a requirement to render multi-page tiff images in flex application.Can anyone help me how to render multi-page tiff images in flex.It will be very helpful for me in my development.
    Thanks in advance,
    Swetha.

    http://stackoverflow.com/questions/2149365/reading-tiff-files-in-adobe-flex-based-applicat ion
    http://stackoverflow.com/questions/3300244/16-bit-tiff-decoder-for-flex
    But do not expect to find an easy solution.    

  • How to use variable in source path of an image  in flex

    hello
    i just want to know that how to use variable in source path
    of an image in flex

    I am doing exactly that with data binding at the moment. This
    is my Image element
    <mx:Image width="50" minHeight="50" height="76"
    source="{Application.application.parameters.api}/rest/entity/{data.Slug}/Image"
    />
    Note the curly brackets
    HTH
    Pat

Maybe you are looking for

  • New install hangs on boot when GDM or LXDM services are enabled

    Greetings Arch users, I've been trying out installing Arch on a USB drive in order to get familiar with the process and use it on my main machine in the future. I've been following the Beginners' Guide, and after a few hiccups, I managed to install w

  • Java ,abap and XSLT mapping

    Hi all,            can any one provide some material on java ,ABA and XSLT mapping(as i got requirement on my current project).. thanks in advance. regards krish..

  • BT is starting to affect my sanity....

    So here is the story of how i've been trying to get phone/broadband installed... Moved into the property and ordered TV/Calls/Broadband from Sky... received a letter in the post a week later telling me they couldn't activate the calls/broadband but g

  • Inserting table with graphic in to signature

    switching form pc to mac... I am trying to put a 1 row two column table, with the first cell having a .gif of my business card and the second column having the text of the business card into my signature (very easy to do in windows outlook 07). I am

  • Help trying to unpack the file V26046-01.zip

    Hi, Trying to install WebLogic Server 11g Oracle 10.3.5: 1. Download the V26046-01.zip 2. The file was copied to the server to install Oracle Weblogic Server. 3. When unpacking the file shows the following message ystem: V26046-01.zip unzip Archive: