Make Composite image from layer data instead from merged data section...

I am working on parsing the psd file and saving the data as per doc of photoshop 6. I need to make an image from the layer data alone with different combinations of layers selected, visible etc... and not using the merged data section in the file. Can any one please help me in this issue??
Thank u.

Ask in the SDK forum.
Mylenium

Similar Messages

  • How do you make an Image from a Graphics?

    1) Is it possible to make an Image from a graphics?
    I've returned the Graphics of an image in the method of one class so that I can work with it in another class. I was looking for a setGraphics in the Image class but there isn't one. Nor is there a graphics.createImage(). What I'd really like to do is get the background image, draw on it in a separate class, then return it to the original class (for buffering purposes).
    2) is there any way to make a blank Image of given dimensions (without actually making a .gif of a blank screen)? I want to draw on the background even if it is blank, but I can't get the Graphics of a null Image.
    thanks in advance.. :-) jen

    thanks for all your help guys!
    i looked at those websites.
    The reason why the site's buffered images work is becuase they are using the paint method in a single class. (i.e. they are not calling the graphics from someplace else). If you call a Graphics (using getGraphics and the like) from someplace else, you don't get a reference or pointer; you get a COPY. The copy will helpfully record your instructions. But the original graphics doesn't get the instructions. That's my problem. My graphics instructions are not getting sent to the originating Graphics, so drawRect never gets executed.
    Another problem is that I often have no background picture in my container, and hence, I have a null pointer when I try to draw stuff on the returned Graphics.
    So what I want to do is create an image in the subclass of the rectangles, lines, whatever, and send it to my handy little setBackground(Image im) method in my superclass. And whenever the background image is null, create a white image to draw on.
    I am calling the graphics from the background of a custom lightweight container. I would REALLY REALLY not like to mess with my container code... it took me a long time to get it working.
    I also don't want to override paint. That would make all the buffering work I did obsolete. :-(

  • If Possible to make a Image from

    Hello
    I have a doubt, Well I have a System where Exist a Server a three station of Work, Two PC (Station Work) are Ultra 5 (Very Old)
    The Idea is to change these computer by Ultra 80 Station (Because we have this type of machine in my Store)
    Is possible to make a Image of the disk of the Ultra 5 and copy this information to Ultra 80?
    If this is possible, I would Like to help me,
    Regard
    Andres

    Since the NI-DAQ driver software is multithreaded, a multiprocessor system would have enhanced performance over a single processor system. Either way, you can have multiple handshaking digital I/O cards in a system for high speed acquisition, granted you have enough operating system resources (DMA, IRQ) for the cards.
    You can find more information about this by going to the http://www.ni.com/support page and searching All Technical Resources for the keyword "multiprocessor". You will find an excellent NI Developer Zone presentation, as well as tutorials and other technical documents.
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • MAKE A IMAGE FROM TILING OF SMALL IMAGES

    HI,
    I want to make IMAGE FILE using number of other image tiling together!! how?

    What have you tried?  What thoughts do you have?  Have you looked at the Vision Utilities on the Vision and Motion Palette?
    I've not done this, myself, but I did make a black-and-white checkerboard pattern (with the size of the checks an input parameter), outputting a 2D U8 array that was "turned into" an image.  The functions necessary to "tile an image" do seem to be present in Vision Utilities.

  • How to make 1x images from @2x

    Dumb question I guess, but I have a bunch of slices all made at 2x and now need to make the 1x versions. Can someone tell me how to do them?
    Thanks.

    http://www.brighthub.com/computing/mac-platform/articles/58686.aspx

  • Lightroom 5.5 support for 32bit images from merging HDR in Photoshop CC 2014?

    Why is it I can create a 32bit HDR image and make adjustments in ACR, but when I save it, Lightroom can't read it? Aren't they basically running the same engine? Is there a work around?

    Which file format do you saving your 32bit HDR image?
    From LR 4.1, Lightroom can read 32-bit floating-point images in TIFF and DNG file formats.

  • Can Disk Utility make a "New Image" from a desktop copy of a DVD?

    I have not been able to get Disk Utility to make "new images" of a couple of DVDs. For one of the DVDs, it may have something to do with a hyphen in the title. I haven't a clue why I'm failing with the second of the two DVDs. (Previously, I've had no trouble with about a dozen DVDs so far.)
    Several members of this discussion group recommended me to copy&paste or drag&drop the files from a DVD to a new folder (say on the desktop), and then to drag the resulting new folder into the box in Disk Utility, and then to make a disk image using Disk Utility.
    (Note: While I believe the original DVDs are not encrypted, I ran an experiment to make double sure, by using MacTheRipper first to produce folders containing clean files.)
    However, when I drag the new folder into the box in Disk Utility, and let go of the mouse button, then the folder does not stay in Disk Utility window, but instead springs back to the desktop.
    How can I get Disk Utility to make new images from the new desktop folders?
    Note:
    As a partially successsful work around:
    For one of the two original DVDs - which has only about 3.7GB on it - I can sometimes (only sometimes) succeed in doing without Disk Utility simply by dragging the audio and video files from the new desktop folder onto a blank DVD, and then burning that DVD. However, in an average of about two out of every three attempts so far, my Mac rejects the new disk as unusable during the burn process.
    For the other original DVD - which has about 4.36GB on it - the contents of the new desktop folder won't fit onto a blank DVD. It then gets messy - shrinking the files - so I'd like to avoid all of that by getting DIsk Utility to work properly.

    For the answer, see the following excerpt from my own posting dated 2 May 2006, i.e.:
    "I finally found out for myself (from Disk Utility Help) that to make a new image from a file/folder, rather than dragging the folder to the Disk Utility pane, in the top menu bar in Disk Utility you select Images/New/Image from Folder."

  • CAN MAKE IMAGE FROM ITS PART IN A LIBRARY

    AS PART OF MY PROJECT I WANT TO MAKE A IMAGE FROM SMALL PARTS BY PARTS OF IMAGE. I HAVE ATTACHED LIBRARY FILE WITH SMALL PARTS OF IMAGE AND FULL IMAGE WHICH WANT TO MAKE FROM ABOVE PARTS OF IMAGAES. IFA NY ONE CAN HELP ME ITS REALLY HELPFUL... AN ADVANCE THANX..
    RAGIL
    Solved!
    Go to Solution.
    Attachments:
    LIBRARY.zip ‏110 KB

    RAGIL wrote:
    But here I want to insert many image to make a bigh image... so then whats the next step?
    Just do it in loops, where the problem is?
    Andrey.

  • Neboot, 10.5.2 image from OSX Tiger Server fails to new macbooks

    (I apologize in advance, I looked through several threads but could not find answer
    to my situation. I also apologize because I tried to get help at the Bombich forum,
    but an admin marked it "solved", when in fact it isn't.
    Thus I turn to the Apple faithful for help with this matter.)
    Using NetRestore 3.4.3, and I'm imaging MacBook (early 2008) labs,
    with 26 MBs in them.
    How I Do it: I get one MB, and using Leopard from OEM, I then patch
    up to Leo 10.5.2/QT 7.4.5/Safari 3.1 and I install the elementary apps
    necessary ( Kid Pix 3, Kidspiration 2, and Nystrom).
    I also install Office 2004, patched up to 11.4.1, and iWorks 08.
    I verify the image is correct, and then firewire connect the MB
    to my Master machine, a MBP running 10.5.2 and NetRestore 3.4.3.
    I then create the NetRestore image from the MB, and then create the NetInstall
    nbi for the image. I then copy the items from the MBP to my imaging server,
    a PPC iMac running OS X Server 10.4.11, via FW.
    I then set the Netboot options in the Server, and reboot the server for good measure.
    I then start hooking up the 25 MBs into a Cisco 2950 switch, which the
    Server is hooked into. I then boot all machines into NetBoot ( cmd-n)
    and image ( slowly) all the machines.
    The Problem:
    Once the images have been created on the machines, and after reboot,
    I then log into as the local admin, then set the server binding.
    Once the binding is complete, I log out, and then verify the binding sticks.
    I then log in as a managed user.
    This is where the image "breaks". The managed user becomes locked out
    of most Universal apps, and apps that should run under Rosetta,
    come up with their icons changed to the "ghostbusters circle"
    (Circle with line through it), and give the error " This application cannot run
    due to it not being supported on this architecture".
    However, if I log back in as local admin, the applications act as normal.
    Also, if I log in or log out as a managed user, the system often hangs,
    either at login or logout, leaving me with just the Leopard space screen,
    and will sometimes force me to force quit the
    system to get it to respond again.
    Contacting Apple, their only suggestion was to start again, but to use SUI
    from a Leopard Server Disc, which I didn't have but they were nice enough
    to send to me anyway, and create the NetBoot off of that.
    I decided however to give NetBoot one more try, and tried it again,
    this time making sure I repaired permissions on the original image
    (MB) before making the NetBoot image in NR 3.4.3.
    I still recieve the same problems afterwards.
    I then did a test in which I created both a second local admin account and
    a local standard account, and both acted like a managed account:
    apps could not be used, "ghostbuster circles" and log in/ log out hangs.
    I'm hesitant to use Leopard SIU, because I read all the reports of it's slowness,
    but is there something in 10.5.2 that breaks Netbooting?
    I've had no problems with Tiger Images in the past, so I'm pretty sure
    i got my steps down.
    Update in my testing :
    Today I decided to try and troubleshoot the image again, so this time
    I took the existing MacBook I used to make the image from,
    and I re-installed the problematic applications again,
    as well as delete the secondary admin and the standard user
    from my config, as I would add these later after the computers
    have been imaged.
    I then ran fix disc permissions on the image drive, and now I am using
    Net Restore 3.4.4, to remake the image andwhen done, I will re- create
    the nbi for the netinstall.
    I will test out the image shortly to see if it will work.
    ok, follow-up:
    after completing my new image and re-creating through NetRestore 3.4.4,
    as well as new nbi's, I copied them over FireWire to my OS X Tiger .4.11 Server.
    Set Netboot in Server Admin, made the Leopard image the default, restarted
    the server.
    Attached a new MacBook IC2D 2.4ghz to my Cisco Switch that the Server is on,
    and attempted NetBoot.
    Net Restore came on and began it's duty. 36 mins later, the image was on,
    verified, and the machine was rebooting.
    Upon reboot, I logged into the MacBook, as the primary admin,
    and verified the UniBi apps and the PPC apps would launch correctly.
    I then created the Standard account ( Student) on the machine,
    and the logged out and then back in as Student to test.
    All Privalges for Student were correct, and the UniBi and PPC apps functioned
    correctly.
    I then logged out as Student , back in as Primary Admin ( me) and then
    went to System Prefs and created the Secondary Admin (Teacher) for
    the machine.
    I then logged out as Primary Admin, and then logged in as Secondary
    Admin, and verified the UniBi and PPC apps would launch.
    I then recieved the "This App is not supported under this architecture"
    error with the UniBi and PPC apps under this secondary admin.
    I logged out, and then logged back in as Primary Admin (me), and everything
    still was working correctly under my account.
    I then trashed the Secondary Admin ( Teacher), and created a new secondary admin
    (called simply School).
    I then logged out as Primary Admin, logged in as School, and same errors
    occur, "This App is not supported under this architecture"
    error with the UniBi and PPC apps.
    I then called one of the PPC app makers Tech Support to see if they had seen
    anything like this under Leopard.
    Of course they hadn't, but after digging around, we decided to try this fix:
    Logged in as Primary Admin, I did a get info on the folder of the app
    that was" breaking".
    I then added the Secondary Admin to the Get Info panel and gave them
    a full ride ( rw) privalges to the folder. I then told the Panel to
    push them down ( propagate) to all children within the folder, including the app.
    I then closed out of the Panel, logged out as admin, and then logged in
    as Secondary admin. I then tested the app, and success, it launched
    perfectly!!!
    So at this point, I would say there is something more to the point
    problematic with Leopard .5.2 's ability to distinguish privileges
    to non Leopard based apps. Apps like the iLife 08 suite, and
    iWorks 08 didn't exhibt any of the problems I saw with Unibi
    and PPC apps under the secondary admin account; they worked as they should.
    At this point, I will add this "fix" to my list of drudgery that I do
    in finalization of the machine, like setting binding to the local
    OS X Server for Managed Accounts, which is next on my list to test,
    as that is also problematic with these Leopard .5.2. installs.
    Ok, so in part two to continue with my problems
    with 10.5.2 image and using NetRestore 3.4.4:
    I took the image out to test in a wide deployment.
    So with my same Tiger Server having the image,
    and my trusty Cisco 2950 switch,
    I set up 8 Macbooks to begin the deployment.
    The first four I turned on and got connected to the
    Server and they began to Netboot fine.
    MacBooks five through 8, I then tried to boot them up
    and get them in line to begin netbooting, but after taking up to
    10 minutes to connect to the server, they all came up with the following
    error:
    "You do not have read privileges to the source image. Please check
    the permissions on the image and try again."
    The first four were still imaging just fine, the next four would just hang
    at that error message.
    So I waited for one to completely finish out of the first four,
    and when it did, I tried to netboot one of the second group
    of four, and after 10 minutes, it connected and began it's process.
    I then tried another in the second group of four, and got the same
    "privileges on image" error.
    So what gives?
    Why can I only do four machines at a time? I know the image is
    fine and its permissions are ok, because I can do four machines
    at a time. It's when I try to do more than that then the problem
    occurs.
    Is this a Leopard issue or a Net Restore 3.4.4. issue?
    Well, just for grins, I put a PPC eMac onto the CISCO 2950,
    and attempted a Netboot from it with the Leopard Universal image,
    just to see if it would mount ( the emac is 700 mhz, so it would not
    support Leopard anyway).
    It attempted Netboot, but came back with the same
    "cannot read the disc image error" as seen on the
    MacBooks.
    But the image worked fine on the first four MacBooks,
    only when I attempted to NetBoot #5 did it cause the error.
    Could trying to put on that fifth Macbook corrupted the image somehow?
    or the NBI?

    While patiently waiting to see if anyone else is having my same issues,
    I tried a Firewire hookup to my 10.4 server directly
    of Macbooks 5 and 6, and tried a Netrestore through Firewire to the Macbooks
    off the same image in my NetBootSp0's Resources/Disc Image folder,
    and it restored fine to both , with only one error, that came up when it
    tried to auto-restart, but I suspect that having to do with it
    being unable to shut down the 10.4.11 Server more than anything else.
    So:
    1. the Image is valid, I can firewire restore from it at the server level
    no problem.
    2. It did do four MacBooks before saying it was "corrupted" and
    "Could not read the image".
    3. The Machines all boot into the Leopard NetBoot screen just fine
    through the Cisco 2950 switch, and get the nbi to bring up, but
    at the point it should auto run, it throws up the "corrupted" and
    "Could not read the image" errors.
    Unfortunately, I am under a deadline to image 540 MacBooks within the
    next 30 days, and my patience is wearing thin......

  • Disk Images from DVD-R

    Today my attempt to make an image from a home-made (& finalized) DVD-R failed with an "input/output error", which was presented when Disk Utility had finished reading the DVD-R into memory. (The DVD does also play fine on this G5.)
    I was surprised, as I've done this just once before with success.
    Is it possible that this is in fact due to the recording mode originally used to make the DVD-R? I'm not sure whether I used SP (2-hour) or LP (4-hr) for the one that worked, but I do know that I had used LP for the DVD that I've tried to make an image from tomight. I don't really want to have to sit through all the tapes to make the 4 hours again onto two new 2-hr DVDs
    Hopefully someone will know if this is the problem, in which case I shall resign myself to the task, but if there's any chance something else is at fault - well, I look forward to your advice!
    Many thanks,
    Blackie

    Yes, I did finalize it in the Panasonic, thanks, Ron. However, I note that I did have some difficulty - it failed the first time, but was successful the second time.
    When attempting to "create image", initially I left the format selection on whatever it defaulted to. I then tried again with read/write.
    I've just tried "replicating" your
    issue (using a disc recorded from television on our
    own Panasonic "standalone" in "LP" mode).
    Brilliant, thanks - at least that clears that part of my question up
    Any possibility that the disc you were trying to
    copy from is slightly dirty or damaged? You might
    want to simply repeat the attempt after giving the
    disc a gentle clean.
    Ah, now this sounds worth following up, especially given my comment at the start... So, I shan't try using DVD master, but I shall try cleaning and having another go with the default setting.
    As I understand it, my Toast Lite won't do DVD-Video, and I've not yet had a need for DVDxDV though I have heard many good things about it, for when I find I do have the need So in the short term, if I can get the process to work via Disk Utility for this one DVD, I'll stick with that
    So, I have something to try before I mark my question as solved, but I think we are probably getting there!
    A thousand thanks,
    Blackie

  • Can I make an image of a hard drive which I attached trough enclosure to my laptop?

    hi,
     I like to know if I can make   an image of hard drive which I attached trough enclosure to my laptop ? if yes which utility is usefull for this purpose? or if there any third party software for this purpose.
    I am thinking also if I clone this extern hard drive wil I get the same result.
    my aim is to make an image of this hard drive which is not working and are some deleted data which I want to recover it whith third party data recovery software.
    johan
    h.david

    no !
    with ghost application, you can clone your disk, or make a image from another disk or extrac image to disk.
    also he support unicast & multicast if you wan't clone to 10-50 New Hard drive from some image.
    here some link for Hirens Boot CD
    http://www.hirensbootcd.org/hbcd-v106/
    first Download this file (iso file) and burn it on cd.
    connect your another HDD you wan't and
    Boot your comuter from CD, and select Dos Program & Backup, then ghost.
    in ghost options select "with USB".
    now in the program you can select what you wan't like disk to image or pratition to image & compression type.
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • Adding a layer with image from URL

    I am trying to write a script that adds a layer to a document, and loads an image from a url such as "http://fantasy411.mlblogs.com/ron-burgundy.jpg" .
    How can I go about doing this? Thanks in advance.

    If you have a newer version of Photoshop that supports sockets you can do something like this.
    // openImageFromWeb.jsx
    // Copyright 2006-2009
    // Written by Jeffrey Tranberry
    // Photoshop for Geeks Version 3.0
    // modified by MLH
    Description:
    This sample script shows how to download images from a web server using the
    Socket object.
    // Note: Socket.read() parameter & behavior
    // Socket.read() will read or time out. It may not read all data fromserver.
    // Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
    // closed by the server.
    // enable double clicking from the
    // Macintosh Finder or the Windows Explorer
    #target photoshop
    // Make Photoshop the frontmost application
    app.bringToFront();
    // SETUP
    var socket = new Socket;
    var html = "";
    var domain = "www.adobe.com" // the domain for the file we want
    var sImg = "/ubi/globalnav/include/adobe-lq.png"; // the rest of the url for the file we want
    var port = ":80"; // the port for the file we want
    // MAIN
    var f = File("~/socket_sample_" + sImg.substr(sImg.length-4)); // 4 = .gif or .jpg
    f.encoding = "binary"; // set binary mode
    f.open("w");
    if (socket.open(domain + port, "binary")){
            // alert("GET " + sImg +" HTTP/1.0\n\n");
            socket.write("GET " + sImg +" HTTP/1.0\n\n"); // get the file
            var binary = socket.read(9999999);
            binary = removeHeaders(binary);
            f.write(binary);
            socket.close();
    f.close();
    if(app.documents.length == 0) app.documents.add(new UnitValue(200,'px'), new UnitValue(200,'px'), 72, 'Untitled 1');
    placeSmartObject( f );
    f.remove(); // Remove temporary downloaded files
    // FUNCTIONS
    function placeSmartObject(fileRef){
    //create a new smart object  layer using a file
         try {
              var desc = new ActionDescriptor();
                   desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
                  desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
                  desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
                  desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
                  desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
                  desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
                   executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
                   activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
                   activeDocument.revealAll();
          } catch (e) {
      if (!e.toString().match(/Place.+is not currently available/)) {
          throw e;
    // Remove header lines from HTTP response
    function removeHeaders(binary){
            var bContinue = true ; // flag for finding end of header
            var line = "";
            var nFirst = 0;
            var count = 0;
            while (bContinue) {
            line = getLine(binary) ; // each header line
            bContinue = line.length >= 2 ; // blank header == end of header
            nFirst = line.length + 1 ;
            binary = binary.substr(nFirst) ;
            return binary;
    // Get a response line from the HTML
    function getLine(html){
            var line = "" ;
            for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
            line += html[i] ;
            return line ;
    You may have to check your firewall setting if you have one and it doesn't work with some servers. At least I can not get it to work with some.

  • How can I restore a single image from an aperture time machine backup, do I have to restore the entire library? that does not make sense

    I hope there has been found a more efficiant solution for this,  how can I restore a single image from an aperture time machine backup, I really hope I don't have to restore the entire library? that does not make sense
    any suggestions?

    Did you try browsing your backups in the Finder ?  That is, do not go and "Enter Time Machine".  Instead, navigate to your Time Machine backup via Finder and then manually go to the time period (by folder name) you are looking for ... when you find your Aperture library you can then "Show Package Contents" and find the Master you are looking for.

  • How do you make an icon from an image

    Used to be if you selected "Get Info" you could get an icon from the info window. Now all I get is this.

    Yup - apparently the OS does not make actual thumbnails anymore for files; instead, it uses something like Preview to generate them on the fly. This means that when you do a Get Info on them, the icon shown in the upper left is a generic one.
    A solution -
    Lower down in the Get Info window is a preview of the image. Double-click that, and it will open in Preview. Press Command-A (Select All) then Command-C (Copy). This will place the image on the Clipboard.
    Switch to the Get Info window for the file or folder you want to place the image onto as an icon, click the generic one in the upper left to select it, press Command-V (Paste).

  • Convert colour images to grayscale images & get pixel data from them

    Is the code below correct to convert colour images to grayscale images in Java?
    public void convertToGrayscale (String sourceName,String destName) throws Exception {
    JPEGImageDecoder decoder=JPEGCodec.createJPEGDecoder(new FileInputStream(sourceName));
    JPEGImageEncoder encoder=JPEGCodec.createJPEGEncoder(new FileOutputStream(destName));
    BufferedImage sourceImg=decoder.decodeAsBufferedImage();
    BufferedImageOp op =new ColorConvertOp(
              ColorSpace.getInstance(ColorSpace.CS_GRAY),null);
         BufferedImage destImg = op.filter(sourceImg,null);
    encoder.encode(destImg);
    decoder = null;
    encoder = null;
    When I get grayscale images from the code below, I would like to access the pixels of those images. So I tried to do:
    byte[] dd=((DataBufferByte)mImage.getRaster().getDataBuffer()).getData();
    BUT the data result array is not 0-255. Could anyone suggest how to obtain pixel data from grayscale images?
    In case that my code shown is not correct or suitable, please give your advice. What I would like to do are in the steps as follows:
    1 change 100*70 jpeg-images to 100*70 grayscale images.
    2 create two dimensional array of pixel data (example [100][70]) from converted images. The number in the array should be between 0-255, right??? And 0 refers to black colour and 255 refers to white colour???
    I am confused about grayscale images. Please help.
    Thank you so much

    I am not sure i understand what is the problem exactly.
    Structure of DataBuffer is described by SampleModel used by same Raster
    object. E.g. it might be 1 byte per xipex or 4 bytes per pixel.
    In your example convertToGrayscale saves images to file as JPEG and
    it seems you later read it back. It is possible what image you read back
    is not greyscale but ARGB and data buffer has different format.
    Technically, if you just need level of grey you may simply
    call getRGB on your output image. Grey is uniform mix of R, G and B.
    Also, instead of ColorConverOp you may dimply create output image of
    grayscale type and draw your color input image with drawImage().
    If none of these helps please try to provide more details.

Maybe you are looking for