Canvas size

Hey guys! Just a quick question. I'm taking an intro Java course this semester and for one of our labs, we have to create a voting system that counts mouse clicks as votes. We're instructed to have at least 12 different candidates, but 12 boxes won't fit in the canvas window. Since my class extends WindowController, how do I resize the canvas to make it bigger? Thanks!

No idea what a WindowController is?

Similar Messages

  • A script to increase the minimum canvas size? (Like Fit Image, but with just my canvas)

    For starters to be clear, I'm looking to manipulate canvas size. Not image size.
    I want to create a script to automatically increase the width and height of my canvas in Photoshop to a specific size when necessary. I only want this to happen if my canvas is less than that specified size. For example: Let's say my canvas size is 300x250. I want the canvas to be at LEAST 600x600. If I run my action it will increase the canvas size to 600x600 for me. If I run this same script on an image where the canvas size is already 700x700, it won't do anything at all to it because both the width and height are equal to or greater than my target size.
    It would also need to work with the height and width on an individual basis. If my image is 400x800, the action would increase my width from 400 to 600, but it would leave the height of 800 alone. So the final canvas size will end up being 600x800.
    It's kind of like the "Fit Image" option in Photoshop, but I only want to manipulate my canvas size, NOT my image size.

    It is possible.
    But if you hope that the dialog remembers the last settings that would require storing those values (which could be done with a txt-file at some pre-defined location), but it would make the Script a bit more complicated.
    // resize canvas in either direction if it is below a defined minimum;
    // 2011; use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    // dialog;
    var dlg = new Window("dialog", "increase width and height if under", [500,300,750,380]);
    // filter for checking if entry is numeric, thanks to xbytor;
    numberKeystrokeFilter = function() {
              if (this.text.match(/[^\-\.\d]/)) {
                        this.text = this.text.replace(/[^\d]/g, "")
              if (Number(this.text <= 0)) {this.text = 5};
              this.text = Math.round(Number(this.text));
    // fields for entry;
    dlg.hor = dlg.add("edittext", [14,15,88,35], "600", {multiline:false});
    dlg.hor.onChange = numberKeystrokeFilter;
    dlg.horText = dlg.add("statictext", [93,15,118,35], "px", {multiline:false});
    dlg.ver = dlg.add("edittext", [129,15,210,35], "600", {multiline:false});
    dlg.ver.onChange = numberKeystrokeFilter;
    dlg.verText = dlg.add("statictext", [215,15,240,35], "px", {multiline:false});
    dlg.hor.active = true;
    // ok- and cancel-button;
    dlg.buildBtn = dlg.add("button", [13,45,118,68], "OK", {name:"ok"});
    dlg.cancelBtn = dlg.add("button", [128,45,240,68], "Cancel", {name:"cancel"});
    // show dialog;
    dlg.center();
    // show dialog;
    var myReturn = dlg.show ();
    // proceed if ok-ed;
    if (myReturn == 1) {
    var myDocument = app.activeDocument;
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    // set the minimum values;
    var minWidth = Number(dlg.hor.text);
    var minHeight = Number(dlg.ver.text);
    // get current ones;
    var theWidth = myDocument.width;
    var theHeight = myDocument.height;
    // resize canvas;
    myDocument.resizeCanvas(Math.max(minWidth, theWidth), Math.max(minHeight, theHeight), AnchorPosition.MIDDLECENTER);
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;

  • Is there a plug in to resize the canvas size in Illustrator CS6?  Not the artboard, the canvas size

    Is there a plug in to resize the canvas size in Illustrator CS6?  Not the artboard, the canvas size

    Reckon that’s what he must mean
    Are you sure, Steve?
    Kurt may agree.

  • Adobe Photoshop cs4-What Does Canvas Size Really Mean?

    What are we actually looking at when we place a picture on a canvas?
    For example, if I have a canvas of a width of 800 and a height of 1500 it appears on the screen to my eyes to be about 3 inches by 7 inches.
    Then let's say I add the headline: Risk takers of all kinds think the same.
    This headline will possibly take three rows to complete itself.
    But then I can make the same canvas fit the screen.
    Now the entire headline will fit on one row.
    What confuses me is which image of the canvas is a "what-you-see-is-what-you-get" in terms of how it will actually look on my webpage?
    In other words I guess my real question is how do I start with a canvas size that actually reflects my webpage or a defineable portion of it.
    Thank You,
    Jerry

    You'll have to forgive me but at times I'm not really sure what I'm talking about or doing.
    But an image or other content is built on layer canvas' I think?
    It gets all confusing because you may or may not fill a canvas with an image?
    Assuming you do fill a canvas with an image then I think the pixel dimensions and resolution will be directly tied to the canvas size?
    But I don't think any of that is my real point.
    I'll try to speak to my confusion using words other than those I first used.
    For example let's say you are making a squeeze page for your website.
    So you start with a headline that reads as follows: INTERNET MARKETER STICKS TO HIS GUM!
    Let's say those words are in large print.
    On my computer and I am using a small screen, if I create a canvas of a width =800 and height=1500 it occupies a space of
    of about 3" by 7". 
    Now (and this part is now becoming like what I wrote above) those six words in large letters will occupy three to four rows on my computer.
    So in my mind I am thinking that when I eventually publish that page that the headline should occupy four lines. Make sense?
    But if I click the "fit to screen" Photoshop button, the canvas becomes larger on my screen and the entire headline will now fit on a "single" line.
    So now in my mind I am thinking that when I eventually publish that page that the headline should occupy one line.  See my problem?
    I guess my point is am I looking at WYSIWYG in the first, second or neither case?
    In other words what is the meaning of what I see when I look at a canvas?
    Thank you for your help.
    Here's one more attempt.
    Let's say you spend 12 hours designing a canvas in Photoshop that you thought would properly fill your webpage, and then you discover to your dismay that instead of your headline fitting properly only 37% of it does.  This would make you very unhappy and perhaps others.
    So what I'm trying to understand as a beginner is how does what I see on a canvas in Photoshop cs4 relate to a webpage.

  • Change canvas size in Final Cut Express?

    I completed an animation in FCE before I realized that I did something foolish: My animation frames are shot in HD (1920x1080), but I failed to set my canvas size, which is NTSC. Now, when I export my animation, the video size is distorted.
    Is there a way to change the canvas size of a movie so that it applies to existing sequences? Or, can a sequence's dimensions be changed? And, if not, can anyone recommend a workaround? I'm dealing with several thousand individual animation frames, so starting from scratch isn't an option for me.

    You can't. FCE is a fixed resolution editing application, either DV or HD at 1080 or 720.

  • PDF Page Size does not match Canvas Size

    Hello,
    I'm using Xcelsius 2008 Engage SP1 on Vista 64bit with Office 2007 installed. When I'm exporting a Xcelsius file to PDF, the resulting Page Size of the PDF file is 8.5in x 11in. However, the Canvas size in Xcelsius is 800x600 (pixels). The resulting PDF file has quite a bit of whitespace in the top and bottom sections of the file.
    Is there anyway that I can export to PDF but with a file size that is in the same aspect ratio than the Canvas Size?
    Thanks for any input.
    Regards,
    Jon

    We regularly export to PDF and face this issue.  I believe that the adjustments need to be made in Acrobat as there is, from my understanding, no way to change the default export in Xcelsius.  You are probably already be doing this, but if not ... our solution has been, once you have exported your model into Acrobat, to simply rotate the page before saving the file.  At 800 x 600 you may still have some white space at the top and bottom of your model.  We typically use an Xcelsius canvas size of 1100 x 850.  When exported (and rotated in Acrobat) this gives a nice crisp image that also fills the page.  I hope this helps you.

  • Batch Process Change Canvas Size Buggy

    I have 300+ products shots that need to go up to our website.
    Using FW CS3 I was able to resize and optimize both full size
    images and the thumbnails. The issue is due to our website setup
    the thumbnails are expected to be exactly 100x100. If the canvas
    size is irregular the image gets stretched or squeezed when served
    up on the site.
    So I created a custom action to set the canvas size to 100 x
    100 with a white background and to expand from the center out. When
    I run this manually everything is ducky. But when I add it to my
    batch process the actual content of the thumbnails moves from image
    to image. Some items are centered fine, some are too far left or
    too far right (or high,low) some are shifted so much that they are
    actually cut off to the left or right. There seems to be no rhyme
    or reason to it.
    Here is how the batch is set up:
    It grabs the original file ( a press resolution PSD file) and
    fit to size to 100 x 100. Then I run the command to set canvas size
    to 100x100 white background. And then it exports it to optimized
    jpeg. I have tried running the actions separately. And when I just
    run the fit to size and optimization as a batch the thumbs look
    fine no weird positioning. So I know it is the command.
    Any ideas?

    Thankyou Heath
    If I choose scale > scale to fit area > then choose a maximum width or height, that works for that part of the process.
    Percentage doesn’t work, because I need them to be a particular size (either width or height, doesn’t matter , as long as nither of them exceeds 00px)
    For the part that I then want to find the smallest measurement (width or height) and make a particular size, there doesn’t seem to be any way that I can find in FW to do that.
    But, after searching on line, I found an app that does all that and more, its brilliant.  It will find the largest side, the smallest side, or whatever and change it to what you want and rescale the other side to fit.
    This is the link - http://www.rw-designer.com/picture-resize
    Fiona

  • Maximum Artboard Size (Not Canvas Size)

    Hi,
    I read that maximum canvas size is 227in but Illustrator CC on both mac and windows and several different computer does not allow me to exceed 120in x 120 in. I can change my artboard size manually (shift+o) and drag the corners to 227inches but the number on the right upper corner is stuck on 120 inches. So what is the maximum size that I can work in Illustrator? If it is 227in why can't I make an Artboard bigger than 120 inches? And to avoid more confusion what is the canvas and what is the art board?
    Thank you

    mus,
    When things become seriously weird, as in your case, it may be worth trying the list (you have been through 1) and 2) already, and I would suggest your skipping 3) and 5), which leaves 4) and 6).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Smart Objects...changing canvas size problem

    When changing the canvas size of a smart object, the layer on the original document will distort visually since it doesn't update the size of the smart object.
    Is there a solution to this, or an easy way to quickly update every instance of the smart object on the original doc?
    To clarify: I know that you can change the dimensions of the smart object on the original doc and it'll fix it, my question is if there's a way to automatically have that happen and have the original doc smart objects respect your canvas size changes on the smart object doc.
    Reproduce:
    1) Draw a circle
    2) Turn it into a smart object
    3) Go into the smart object, change the canvas size by increasing the height of the canvas. The smart object should now have a circle with blank space above/below it.
    4) Save the smart object
    5) The circle on the original document will now be squished.
    I'm using Photoshop CS5

    xg3 wrote:
    When changing the canvas size of a smart object, the layer on the original document will distort visually since it doesn't update the size of the smart object.
    When you change the canvas size of a document the only layer that will change is a backgroung layer for it does not support transparency so its pixels will be changed.  However a background layer should not distort it may be cropped  and have canvas added in which case the color of the empty canvas can be set in the canvas size dialog.  All other layer including Smart Object layer should not chang at all.  Layer positioning in relationship to the canvas  and the new canvas size is set during the canvas size change.  Layers can be any size and have any aspect ratio. Their sizes can be smaller, the same or larger then the canvas size. Even layer that can fit  within a documents canvas size may be positioned so that all, some or none of the layer is over the documents canvas.
    I do not know what you mean when you write the original document chages. A smart object layer has an embedded copy of an object. The original document is not touched. You can open the smart object layer embedded object in  Photoshop by double clicking on the smart object icon in the layers palette smart object layer and change it size. And distort it f you wish. When you use Photoshop save. Photoshop will change the enbedded object in the smart object layer. You can also leave the embedded smaro object as is and change the smart object layer size and distort it using transform on the smart object layer itsself.
    I think what you did was to open the smart object in photoshop change its canvas saze then save it. The updated smart object is realy round but you dont see that it is becaue it is being transformec ti fit the original documents canvas. If you do a Canvas size on the codument you will see the original docyment canvas size is not change and thet your now squaching a now changed taller object into a shorter canvas.  With each Smart Obkect layer there is as associated transform.
    No I was wrong I just tried that and it looks like the transform was not the problem as yo can see I dir a Ctrl+T so you can see the size of the smart object layer is now biger then the original document and is positioned centered canvas is still 300x300 white area in image

  • Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Vandushia,
    The Workspace size is fixed, 16,384 points.
    I am afraid you will have to work in a suitable scale, which could be 1:2, 1:4, 1:10, or whatever is most convenient.

  • Large Canvas Sizes

    I recently purchased a product called Roots Magic for an upcoming family re-union (Sep 13th). This program produces a Family Tree Wall Chart with a canvas size of 10.6" x 396.9" (1' x 33'), and growing. I have pictures within the chart so you can put a face to the name. I am trying to get some format that a local printer can produce a reasonably readable chart. The Roots Magic generated chart is great in format, quality and size of lettering.
    I can only export it as a .EMF file as the other options cause RootsMagic to crash.
    I can't use Adobe Illustrator, Design, or PDF (which are the preferred formats of the local printers) because their largest canvas size is 227". I tried importing partial EMF files, however, their print size was too small and I couldn't scale the objects without blowing the canvas limit again. Besides, genrating the tree and printing it in pieces, seems to alter the flow of the generations.
    Adobe Photoshop has a larger canvas size, I think, however, it does not import EMF files.
    I have most of the Adobe products, but I can't seem to find a way to produce something for local commercial printing. Muliple PDF pages, scaled to the same size, appears to be an alternative but I can't seem to find a way to produce this. RootsMagic does not have a lot of alternatives.
    My options seem to be:
    a) find some way to breadown the resulting object intio mutiple canvas sizes
    b) buy my own printer/plotter.
    To make matters worse, the chart is growing daily as I receive added updates.
    Does anyone have any suggestions?

    Ian,
    Realistically, the folks who come to mind who can output anything 33-feet long are the folks who would make large banner or perhaps some billboard and vehicle graphics stuff, and resolution is probably not going to be satisfactory. Also note, that a Dead Seas Scroll is awkward to handle unless you have a wall to unroll and tack it to. Also note that the graphic file size could exceed 1 GB.
    >buy my own printer/plotter.
    Forget about purchasing a printer that can handle this unless multiple pieces are acceptable. For example, an Epson 13" printer (figure spending several hundred dollars) can handle roll-cut printouts, but only up to 44" wide. But if you have to print out more than one or two sets, you're going to be spending a lot of time with this; and a lot of money on ink (and paper if you choose something better than the rather miserable, non-stable 28 lb or 32 lb inkjet bond). But then again, if you have a production house or printer output this for you, you may be spending $10-$12 or more per square foot.
    >I can only export it as a .EMF file as the other options cause RootsMagic to crash.
    Get tech support to figure it out, so that if multiple pages is a reasonable option, you can chop the art down and place each segment on a page of a page layout document, such as InDesign or QuarkXPress, if you can save to a compatible format, such as .pdf, .eps .tif or .jpg.
    Neil

  • Adobe Generator: yes! but do not crop my canvas size (option)

    Adobe Generator= Is not there an option where I can maintain original canvas size position? ?
    I mean: I love that the generator slices and exports each individual layer element into a single file .. thats good BUT..
    but I do not want that the auto-cropping feature of export each single image into its exact dimensions >> I do want an option where you can maintain the original canvas size and element's position within the canvas space..    is that possible? 
    GRAPHICALLY it is instead of this:  ///  I want an OPTION that automatically do this:
    and we'll love that feature in Fireworks CC please !!!!

    Silkrooster wrote:
    I am not really seeing the need for it. If that was the case, it would make more sense to save the entire document.
    There is plenty need for it. For one, not every project is a web site where CSS is even relevant. But if you have a large stack of icons, it is often incredibly inefficient to position them all individually with CSS instead of just exporting them as PNGs with matching dimensions. It also gives you better control over the scaling; for example, if you have 2px strokes that are going to be scaled to 50% on export, you want to align them to a 2px grid so they don't go fuzzy.
    In my case I often need to export large batches (hundreds) of logos, which all need to be exported at canvas size and not trimmed to endless random sizes. The layer mask hack sounds like a lifesaver, but has plenty of shortcomings. It should be easy enough to add it as a simple parameter, and it would save a lot of time and hassle for a lot of users.

  • How can I export an image from Illustrator same canvas size and custom resolution?

    Hey all.  i am using Adobe Illustrator CS5 for creating images for iPhone app icons the size of image 374 px 374 px and 264 ppi. i created an image same size and ppi .the problem after export the image file size changing to  1371px x 1371px and 264 ppi pixel dimension.How can I export same canvas size and same resolution file from illustrator

    10111980,
    If you just forget about PPI and use Save for Web, you will get the 374 x 374 pixel size.
    The 1371 x 1371 pixels is because you somehow increase the resolution by 264/72.
    You should never mix pixel by pixel sizes and PPI.
    The 374 x 374 pixels is the actual image size. At 264 PPI that will be about 1.417 inches. At 72 PPI that will be about 5.194 inches.

  • I am unable to extend the canvas size

    Has anyone else had this problem I am using cs5 on a mac and find that I cannot extend the canvas size of a photo the little box that opens just will not let me type anything into it is it me or is it the program that is doing something wrong

    Have you tried trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences You’ve changed) by pressing command-alt-shift on starting the program yet?

  • NEED HELP: Problem with Canvas Size in Crystal design/report.

    Hello,
         I am having some trouble with one of my reports, the canvas size is so much bigger than my design/report, which is causing it to preview really small.  I have gone into the document properties and tried to change those settings, I have also used the tools to try to make the canvas size smaller, it seems as thought nothing is really working.  When I use those tools it cuts off part of my report and also adds huge scroll bars into my design... Does anyone have any insight on this? It would be a great help.
    Thank you,
    Kerry Jenkins
    Harte-Hanks Analyst

    Hi Kerry,
    Are you using Crystal Reports Designer or BusinessObjects designer ( what ever it was called ) Crysstal Reports 5 was released in the summer of 1997 and definitely did not support a flash file.
    Need more info and details on the versions you are using and info on the Clients portal, Is it Businessobjects Enterprise 5.1?
    Thank you
    Don

  • Change Canvas size on one dimension

    I want to change the canvas size to account for a 2 in. leader.  E.G.  an 8.5 x 11 image to 8.5 x 13 in.  But the 2 ins want to be at the lead end of the image, that which enters the printer first.
    Thanks in advance for your help.

    So set the Anchor in the Canvas Size-dialog accordingly and click Relative, or am I misunderstanding the problem?

Maybe you are looking for

  • HT1414 How can I restore to an older version of the iOS?

    Itunes won't let me do it... or maybe it's me, doing the wrong thing. It is legal to downgrade, right? Thanks

  • Can you create a CURSOR FOR loop within a FUNCTION?

    The title says it all...

  • Display specific report part

    Hi Experts, I am using the Crystal Reports Server V1 trial version. I want to display Xcelsius Dashboards through InfoView. Because the add-function for flash (swf) files isnt avaiable I choose the option to insert my swf files into Crystal Reports a

  • Final Cut Audio

    Hi. I capture video -- and when I put it onto the time line -- I hear no audio. U am able to see it -- meaning the audio mixer is moving up and down with sound. Any suggestions.

  • Last read note is note displayed in ipod Classic

    I put some notes into my iPod Classic. Open the first, read it to the end, press center button and so on. For example, I read 20 notes this way. After that I turn off my iPod, go to another menu or just do nothing for a while. When I return to notes,