Best way to draw a triangle for the web

I want to draw a triangle using Java for the web and was wondering what would be the best and simplest way to do this. Any guidance and links would be much appreciated.

The drawLine method of the Graphics class.Or the drawPolygon() method.

Similar Messages

  • Best way to encode Quicktime file for the web?

    Hello all and thanks in advance for your help with this problem.
    I need to know the best way to encode a quicktime clip for the web.
    This was my first try:
    http://www.denmothers.net/trailer-big.htm
    It works fine in safari, firefox, and ie for mac, provided they have quicktime 6 or later but it seems not to work on pc browsers. The file is encoded as an .mp4 using compressor and played with the browser's quicktime plugin. I've read that encoding files as a .mov provides greater compatibility but when i compress it as a .mov using the mpeg4 codec the file sizes are huge and when i use the photo-jpeg codec the quality is poor. h.264 looks great and has low file sizes but then my viewers have to have quicktime 7 which i think is too limiting because many will have older computers.
    How should I encode my file such that it works best across browsers and platforms and has the highest quality at the lowest size?
    Best,
    Keegan

    If you open an .mp4 file in quicktime pro you can then select File->Save-As and you are presented with two options:
    Save as self-contained: This will create a .mov that is the same size as your .mp4 but is playable on any system w/ QuickTime 6 and the Mpeg-4 codec. (PC's included).
    Save as reference: This will create a small (>500kb) file that will simply reference the .mp4. If they're in the same folder the .mov created will open the .mp4. Without the .mp4 the .mov in this case is useless.
    For what you're trying to do I suggest going with self-contained.

  • Best way to save HQ video for the web?

    What´s the best settings for great video-quality for the web?
    I have a 5 min long clip I´d like to put on my website.
    I would like it to be 480x360 and with good quality. It´s ok if the file gets 30-40 MB.
    I have tryed the Expert Settings, Quicktime Movie, Broadband - High, but the movie gets "striped".
    What´s wrong?
    A lot Mac OS X (10.4.8)

    Hi Magnus40,
    I'm not sure what you are doing to create this problem. I create web movies all the time and have never had this problem, although, I never use the advanced settings cos I have never had to. When you go to the Quicktime export pane in iMovie you have the quality choices from full quality to web. When you select one of these it gives an estimate of the file size. For that length clip you should not need to use any setting besides full quality. I'd say the problem is coming from the 480x360 aspect ratio. This is what is compressing the file. Have you tried exporting it as full quality and then uploading it? The only problem you face by doing this is, it will take a long time for the movie to load on your website. For a short clip you may find that the CD ROM setting is sufficient.
    Good luck.
    SR

  • Best way to present UNDOWNLOADABLE video on the web?

    I have been asked by a client to build a site with short instructional videos that *must not be downloadable*.
    So I'm assuming streaming: Correct?
    Which format is the best for this: I would prefer QuickTime.
    How easy is it to produce videos in that (or any other) format that cannot be grabbed/downloaded?
    TIA!

    There is no "password protected" method for video files short of "media keys" (Sorenson software) but you can use password for entry to the Web pages that hold them.
    The html code to block the disclosure triangle in the QuickTime controller is as simple as adding kioskmode="true" in the object and embed tags used on that page.
    It doesn't prevent just one of your password allowed visitors from sharing the page password or keep your files from being shared.
    The file location is still viewable in the page elements that make up your page code.
    Your clients are asking the impossible. No file on the Web is safe from being "borrowed". If they can view the page (and code) they can capture your media file used in it.
    http://www.sorensonmedia.com/mmpages/?pageID=4
    And those same pages explain what media keys are and how they work.
    Pretty old technology that is easily circumvented by screen capture software. Probably why I've never been offered a media key file even though it was available for use since QuickTime 3.

  • Correct way to compress 16X9 file for the web

    Hello: Shot an HDV project. After importing converted files to DVCProHD. 1280X1080 16X9. Edited 5 min. piece. Exported QT with current settings. Need to upload to You Tube. Please tell me...what's the best choice in Compressor? I tried H.264 Streaming 800kbps and the file now looks 4X3. Please help. THANKS!

    sdl wrote:
    I tried H.264 Streaming 800kbps and the file now looks 4X3.
    Because of the non-square pixel format you're mastering in (DVCProHD) you have to force the frame size to 1280x720. And for an HD file, you can up the bit rate to about 2000 kbps for YouTube. (I believe 800 kbps is recommended for the 16:9 High Quality file)
    Also, be sure to turn on Frame Controls (in Compressor), as it'll help maintain sharpness that will otherwise be lost when going to 1280x720. Though that'll up the encode time significantly...

  • How best to export a themed slideshow for the web.

    I want to export my scrapbook themed slide-show such that I get the best size/quality of movie for use on a web-page. What export settings should I used to accomplish this?
    - CDM

    All good questions. Should have provided that information up front.
    This is for broadband users that have something in the region of aroun 2Mb donwload speed connections.
    I already managed this at some point in the past (http://www.ChrisAndSandyMorgan.com) but no longer have the files that I uploaded to inspect and capture the settings from.
    - CDM

  • What's the fastest way to create simple report for the web?

    I have Developer 6i and Oracle 9I installed.
    If i have a report already done, how can I make it available to users, so they can access them thru an IP or a host?
    can I achieve that just with my developer 6i (report builder) and my database (oracle 9i)???
    If so, how?

    1) pls see
    [     Publishing reports to web  - 10G  ]
    see
    [    All Docs for all versions    ]
    for 9i version of same document
    2) Better to have 9i builder - 9i ias combinations
    (not sure whether other combination is supported or not. but understandably it is best to have same combination]
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Best way to create customized counter for slideshow.

    Hello everone. I am stuck on this one. What is the best way to create a customizable for the slideshow widgets. Im looking to create circles or boxes that change color in relation to the picture in the slideshow. I am sure that I have seen it on a muse site before, but just can't figure how to get it done. Thanks!

    Have you tried using:
    Effect > Text > Numbers ?
    You could also have found that answer by searching for "numbers" at the Community Help site. It's really a great resource in addition to the online help files. Try it out!
    (It would have been the first result returned from the search...)
    http://www.adobe.com/support/aftereffects/

  • Save for the web colors

    I was having trouble with image colors when I used 'save for the web' and I found a couple of solutions in tech notes regarding embedded color profiles but there is some thing I just don't understand.
    It says:
    "To ensure that colors are consistent in Photoshop, ImageReady and the Save for the Web dialog box, use an embedded color profile for display in each, or preview the image in Photoshop using the monitors RGB color space. Note that if you use an embedded color profile for display, colors may appear incorrectly if you view the image in an application that cannot read color profiles."
    Can somebody give me the lowdown on what exactly a color profile is (what it does, when you should embed one etc) and some examples of the kind of application that can't read them i.e. if I send the photos via e-mail can the profile be read? put them on a web page?
    Thanks for any illumination!
    j.

    A profile is a file that decribes to applications that can read them the color and tonal characteristics of a particular device. A profile can also be a mathematical description of a particular RGB or CMYK Lab color space. You've probably seen RGB working spaces in Photoshop referred to in terms like sRGB, Adobe RGB, ProPhoto RGB, etc. Any application that is color managed and can read and use profiles needs a minimum of two profile to to the job - a source profile and a destination profile. When you're looking at images on your computer monitor, the source is your RGB working space and the destination is your specific monitor. Photoshop uses both the working space profile and the monitor profile to display your image correctly. Most other applications in Windows do not read profile and have to assume either "Monitor RGB" or sRGB as the source for the file. If your file is not one of those, then false asumptioins are made and the image does not appear correctly. Some web browsers like Firefox 3 and Apple Safari do read profiles but not necessarily by default. You have to turn the option in FF. Some email readers are color managed, others not.
    Profiles can be and usually are embedded in the document when you save it. Unless you have a good reason for not embedding a profile, it's almost always a good idea. It adds 4K to the file size and will let someone down the line who is using a color managed application see the file how you intended it. You have no control over the others, but that's life online. Currentlyl the best strategy is convert files destined for the web to sRGB and embed the profiles. That might change in the future, but it's a good place to be right now.

  • What is the best way to create shared variable for multiple PXI(Real-Time) to GUI PC?

    What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at  individual PXI system).

    Dear Ravens,
    I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.

  • What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change? When we 1st got our Macbook we unknowingly set it up wrong--as 2 separate users, with separate everything. Good for contacts and email, bad for calendar, photos, music.

    What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change?  When we first got our Macbook we unknowingly set it up as 2 separate users, with separate everything.  Now I have an iphone and I want to sync calendars but not contacts or email.  Any direction you could give would help! thx

    Anyone...anyone? Bueller...Bueller?

  • What is the best way to erase my computer for personal stuff while leaving the computer ready to use

    what is the best way to erase my computer for personal stuff while leaving the computer ready to use

    If the Mac came with Mountain Lion or Lion, press Command, Option and R keys on boot, open Disk Utility, erase the disk and reinstall Lion or Mountain Lion. If it came with Snow Leopard or older, insert the DVD, press C key on boot, go to Utilities > Disk Utility, erase the drive and reinstall Snow Leopard

  • The best way to make proxy files for editing?

    Hi,
    What is the best way to create proxy files for editing? I'm thinking Apple ProRes 422 (Proxy). The original material is DVCPRO HD 1080i50, shot on Panasonic P2 cards, and copied on to hard drives. But as there is about 400 hours of it, I desperately need to find a clever way to make smaller proxy files for editing.
    I would also like to make the proxies at a smaller resolution than 1080i for the editing process.
    I guess it's possible to import the media and then batch export it to the proxy format, but Is there a better way?

    I'm not able to ingest the material directly from the P2-folders as ProRes 422 (Proxy). No matter how much I change the import settings in "Log and transfer", it still ingests as DVCPRO HD 1080i50.
    Correct. DVCPRO HD P2 can only come in as DVCPRO HD. You can't transcode it. AVCIntra P2 is what you can bring in as ProRes. (Sorry Tom).
    I can of course transcode it form there to the proxy format and delete the ingested files,
    Why? Why do that? You have ingested all the files, right? You ALREADY HAVE THEM...right? Why not work with them? You obviously have the room (20TB). Why import all this, then now take the days it would require to make proxies?
    Making the ProRes-proxies directly from the P2-material seems more logical, or isn't it?
    DVCPRO HD P2 cannot come in as anything else, so the offline/online workflow for them doesn't work unless you import it all, then transcode to a smaller format...but then need to keep the originals online to relink to when you are done. If you wanted to do an offline/online, you needed to research this better...or test it...before you shot your hundreds of hours only to find that what you want to do won't work.
    Shane

  • I am getting pop ups on safari and firefox lately and am worried i may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    I am getting pop ups on safari and firefox lately and am worried I may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • What is the best way to make video and audio the same lengths for posting on Web?

    YouTube recommends doing this to avoid sync problems. Maybe it will also make my videos run more smoothly. I'm talking here about random pauses I see in my movies on YouTube, not the uniform stuttering problem which I pretty much solved by redoing the movie at 30 fps instead of 24 fps. (Original is 18 fps Super 8 movie film.)
    Anyway, there is no sound during my titles. The soundtrack starts about 17 seconds in, and ends when the ending titles begin. So what's the best way to add silent audio? The best I can figure is to take some existing sound, put it in where the titles are, and turn the volume down to zero. Seems real workaround-ish, so to speak, to me. It seems to work. I even cranked it up on headphones to make sure there was no residual noice. But I'm curious if there's a better way? No biggie if not.
    Thanks.         

    I should have included the following:
    1.) Why can't I make a silent project in GarageBand? I have to instead find a project with a long enough song, make an "iLife preview" of it (see (2) below), copy it from the iMovie Music and Sound Effects browser to the end of the movie, and then open the audio panel and turn the volume to zero. And all this so that video websites don't get confused by a soundtrack that starts in mid-movie.
    2.) Why do I have to "render" them by the following process: Double-click a song in the iMovie Music and Sound Effects browser. You get a dialog box saying "The project "The Great Race" cannot be used because it was not prepared with an iLife preview. Would you like to open "The Great Race" in GB so you can save it with an iLife preview?" What I don't understand is why this new thing was introduced and why I have to do it via iMovie.

Maybe you are looking for

  • Why can't I download iCloud for windows vista?

    I had a problem with the "famous" lastest iTunes update, so I erased every program that has anything to do with Apple, and now I need to install them all over again but my question is: How can I install iCloud on my windows vista computer if the say

  • DMEE - Vendor's Email ID

    Hi, We got a requirement where we need to create the DME file with Email ID of the vendor in that, If any one worked on this before please let me know how I can get the value here. We tried with the UserExit without any success. Please help me in thi

  • Margin differences IE6 vs Firefox 2

    If you create a page using the code below you will see that the left margin is completely different in IE 6 and Firefox. Do I have a coding error or do I need to set the margin and then if IE is used set it again with a different value? <!DOCTYPE htm

  • How do I create artboards in CS3?

    I have a CS3 file with two areas (pages) shown next to each other. I want to create a 2-page PDF. When I create the PDF, only one area (page) is included. I've read about artboards (can't find the tool) and page tiling, and don't understand any of it

  • Disable Checkbox in OO ALV

    hi experts, after some processing of my alv, for records that are flagged, i will need to diable the checkbox. LOOP AT gt_rec_item INTO ls_alv WHERE locked_flag = 'X'.       l_tabix = sy-tabix.       REFRESH lt_celltab.       ls_celltab-fieldname = '