JAI blank image/graphics

Hello,
I'm using JAI because I do not want to call awt classes because they need my X-server running...
All I want to do is creating a blank/new image-like thing and get it's graphics, all I seem to be able to find is how to create image-like objects with an existing picture in it...
Anybody a clue on how to create a blank image without having to load an existing pic from anywere??
Thnx

<code>
import java.awt.*;
import java.awt.image.*;
public class jwmem extends java.awt.Frame {
Image i;
int width = 200;
int height = 200;
public jwmem () {
int[] pixels = new int [width*height];
int c;
double radianConversion = Math.PI / 180.0;
for (int index=0,y=0;y<height;y++) {
c = ((0xff) &
(byte)(Math.abs (Math.sin((y+height)*radianConversion))* 255));
for (int x=0;x<width;x++) {
pixels[index++] = ((0xff<<24) | (c<<16) | (c<<8) | c);
i = createImage (new MemoryImageSource (width, height, pixels, 0, width));
setFont (new Font ("TimesRoman", Font.BOLD | Font.ITALIC, 32));
setSize(100,100);
show();
     public static void main(String args[]) {
          new jwmem();
public void paint (Graphics g) {
g.drawImage (i, 0, 0, this);
g.drawString ("JavaWorld", 30, 80);
</code>
this is a code to create a new image using awt
http://www.javaworld.com/javaworld/javatips/javatip16/jwmem.java
go to this link for getting code using applet
I cant get one thing both the codes wont need any server to be running.
for applet you need a html file having content
<applet code=jwmem.class height=100 width=100>this browser wont supports applet</applet>
you need to put the .class file and html file in one directory thats all.
Hope this is the one you need

Similar Messages

  • How to add an image/graphic to a form webpage?

    Dear All,
    When we execute our Oracle Forms application, it opens in a webpage with a white background. This looks too bland.
    Is there a way we can add an image/graphic to the webpage to improve its look and feel? Please suggest.
    Thanks,
    Amit

    Hello,
    You have two tags in the /forms/server/formsweb.cfg file to put images in the background:
    splashScreen=no
    background=noreplace the NO value by a .GIF or JPG existing file name on the server.
    You can also hide the blank page (when separate frame=yes) as soon as it dosplays with the following in your concerned section:
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(2000,2000)'Francois

  • Disk Utility: Creating a new blank image receiving "file too large" error.

    Hello All!
    I'm trying to create a 10GB non-encrypted, non-compressed RW blank image via the disk utility. The DU runs for a few minutes then barfs out "file too large" error. I have over 30GB free on my HDD. I tried with a smaller size of 6GB to no avail. Also tried unsuccessfully to create from a file (about 4 GB). My ultimate goal is to create a case-insensitive image to run an extremely important program needed for high priority work productivity (i.e. WoW). Thanks in advance for any advice! You will be my new best friend if you help me resolve this. =D
    Hollie
    "There are only 10 types of people in this world: Those who understand binary, and those who don't."

    Hi Hollie, and welcome to the forums!
    Have you created images before successfully?
    Is this to/on your boot drive, or an external drive?
    Have you done any Disk/OS maintenance lately?
    We might see if there are some big temp files left or such...
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is now free, and likely the best/easiest...
    http://www.omnigroup.com/applications/omnidisksweeper/
    WhatSize...
    http://www.macupdate.com/info.php/id/13006/
    Disk Inventory X...
    http://www.derlien.com/
    GrandPerspective...
    http://grandperspectiv.sourceforge.net/

  • Bug in iPhoto 6?  Blank images in edit and slideshows

    Hi...
    Have read a few threads on this topic, and it seems to be widespread. The usual helpful comments are made, but I really don't think that this has anything to do with something that the users are doing (e.g. copying libraries, moving libraries, etc..). Also, it seems to be happening to a number of people in exactly the same way, since iPhoto 6 was launched.
    I have been using iPhoto since the beginning, have about 40,000 files in several libraries, and I have never seen anything like this.
    The problem is that out of several hundred images in an individual library (uncopied, and not edited at the finder level or anywhere but iPhoto), a few of them are blank when you view them in edit mode or in a slideshow. This seems to be some sort of internal iPhoto corruption, and not related to the photos themselves (same camera and computer hardware that I have been using for years).
    Also, the images themselves seem to be OK. When you export them from iPhoto to the desktop and open them in Preview or Photoshop, they are fine, and when you reimport them into iPhoto, they seem OK too.
    Obviously, this is a big problem, and even though I can workaround for a single photo, I can't be doing this on an ongoing basis for all of my shots..
    Anyone have any ideas? Is there a way to submit this question to Apple directly?
    Thanks very much!!
    Mike

    I foolishly tried this on a separate Mac on a different library, that one with 22000 images that I had not edited (since the old iPhoto would just die a slow death on that sized library).
    I actually only spent the money for iPhoto 6 (iLife's remainder package did not have any compelling use for me right now) and its ability to handle 25000 images.
    Well, it is faster (i.e. it does not go to sleep for 12 minutes) if I click the scroll button but the blank images problem showed up there also. And ALL of those pictures were standard jpgs and not one was from a weird camera or ever modified or otherwise tweaked if that were an excuse for iPhoto 6 misbehaving with some pictures.
    VERY annoying and very strange that they would not see this in Beta testing. Assuming they do test. So, folks, if you are planning to buy iLife for iPhoto, be forewarned. I will add this to my TO BUY OR NOT TO BUY blog entries at http://imran.com/media/blog/ so people are aware.
    regards
    Imran

  • Get Map As XML/Server Image returns blank image on server and errors out on local

    In Server, map.getMapAsXML and map.getMapAsServerImage both return blank images though they return a valid url
    In local, executing map.getMapAsXML reports the following error:
    Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2137f

    You may be using Windows with limited functionality as the previous version expired. Did you re-format the drive/partition before you did the "fresh" install if not Windows probably kept the old install information so knew that it was expired previously. Either activate Windows (try typing slui.exe and filling in the product key and activate - then restart the machine) or re-format the drive/partition that Windows is on and re-install Windows again.

  • Hi all, when I open a New Tab pg all the images are blank - I've tried clicking on the blank images, & dragging a link from the Bookmarks, without success!

    I want to achieve at least one of two things: either set New Tabs to open with Google automatically; or at least, to have Google pinned to the New Tab page. (Google is my home page.) When a new page opens, all the images are blank. I've read through the Help pages & tried various things. I've tried dragging Google from the Bookmarks to the New Tab, but this only opens Google. I've tried clicking on the blank images, but nothing happens. I've toggled the blank images off for now, so at least I don't need to look at them. I am doing a university course online, so efficiency is really important to me! Those extra clicks really add up & distract!... Thanks in advance :)

    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    # Type '''browser.newtab.url''', in the bar on the top of the page.
    # Double click the first result, '''a new window should appear'''.
    # Type '''www.google.com''' in the window, click ok.
    # '''Open a new tab''', does it go to google?

  • InDesign Book Project...some images/graphics not appearing in print-ready PDF

    Some images/graphics not appearing in print-ready PDF. Why? and how to fix.
    The images are linked.

    That didn't work, but i copied images from other parts of my document that did work and pasted/resized to replace images that didn't import and that seemed to work.
    still wish i could figure out why it happens in the first place so i don't have to do this other process.

  • LR4 export creates random blank images

    Hi I'm experiencing a strange situation where I export a selection of photos, perhaps 150 of them, and will see random blank images with valid photo metadata but a blank (white) image.  In this case 3 of 150 photos are "real" but export as blank.  I can export the exact same selection of images using a slightly different export setting and the images are present (a different watermark PNG).  What is wrong with LR 4 export ?

    Hi
    Please check the following :
    --Export to .PDF and check if you are getting a correct page format.  If you are getting then check word page header and page footer settings.
    --Also check the default printer and page setup.
    --Use no printer option in CR page setup and try to export to word.  Also check RTF format.
    --Also try to check this is happening only in your system and any other system.
    Thanks,
    Sastry

  • Blank images with iPhoto 6 on OS 10.3.9 on iMac G4

    Have installed iPhoto 6 on iMac G4 with OS 10.3.9. The iPhoto Library is (only) on an external (Maxtor) hard drive attached via firewire. Photos are imported automatically into this file. After iPhoto 6 installation, the image files from iPhoto Library are blank with a dotted square in each; the file name is under each blank image. I have been unable to obtain the visual images to these files (about 9000). Another MacBook laptop is able to access the files and the images in iPhoto 6. I have checked all the obvious preferences and would appreciate your help.
    Thanks, Roger

    Must be in the air. The same happened to all my 7506 images in my library. They went blank, that is. And that's on my Mac Mini CD (Intel) with Tiger 10.4.7. I thought it might be a bug in the new 10.4.7 update, but it can be the same problem and not be related to the OS version. I too have my iPhoto Lib on an external hard drive. (iOmega MiniMax 250). JiTe
    MacMini CD   Mac OS X (10.4.7)   iLife '06

  • Random Blank Image Field

    We are using a c# DataSet with a byte[] field to store a .tiff (one .tiff per each record).  We bind this DataSet to a Crystal Report that has this image field for (most of) the report. 
    When we load more that 5 records, we randomly have blank images displayed in the viewer (and printed with blank images). Oddly, when we hit the viewer refresh we get different pages that are blank.
    When we export to .pdf, all images are present in the pdf.
    We have converted the .tiff  to JPEG, and stored these JPEG images into the DataSet byte[] and get similar behavior; that is, we get random blank pages.
      Any ideas will be appreciated.
    thanks,
    bill

    Not enough basic info:
    What version of CR are you using?
    What CR patch level are you on?
    What version of .NET are you using?
    Is this a web or a win app?
    Is htis happening on your dev computer or after you deploy the app?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Would you mind to implement that when websites attempts to access image data on a canvas, blank image data can be returned?

    Issue: privacy (protection)
    Additional to cookies and so on, canvas imagedata is used to discover information about computers. Then Tor Browser Bundle (TBB) - Firefox ESR 24.7.0 automatically returns blank image data and shows option to switch it of and else.
    Would be nice to have this in Standard Firefox.
    Contained in TBB 3.6.3 en-us for Windows from torproject.org

    Thanks, someone else raised this issue a few weeks ago: [https://support.mozilla.org/questions/1011864 Why is FireFox allowing "Canvas Fingerprinting" to track me?]
    Since this forum focuses on the Firefox available today, a better place to make suggestions for changes to Firefox is the Feedback site: https://input.mozilla.org/feedback
    Also, a formal request for enhancement (bug) was filed in July: [https://bugzilla.mozilla.org/show_bug.cgi?id=1041818 Bug #1041818 – take steps to mitigate canvas fingerprinting].
    It's generally not helpful to add "me too" or "hurry up" comments to bugs, but you can register on the Bugzilla site and "vote" for them to be fixed. See:
    * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]

  • Get image invoke method gives blank image when I try to capture waveform graph picture

    Hello
    I am facing problem when try to capture waveform graph picture using invoke method Get image and write JPEG function, some times it gives blank images.I am using these functions inside nested loops.
    ObservationsWith reference to attached VI)
    (1) Sometimes  I found it captures images correctly when i run labview program first time but after that it starts writing blank images.
    (2) Whenever i use flat sequence structure for waveform graph and get image node it always gives blank picture which indicates that execution of waveform graph and Get image should not be sequential.
    (3) Whenever it gives blank image i checked the image data which is not valid data so it indicates problem is with Get image method or labview program flow(may be race condition between waveform graph and Get image method).
           I have attached vi ,please change path name and folder name in which images are being saved.I'm using labview 8.5.1 .
    Attachments:
    image_capture_problem.lvproj ‏6 KB
    image capture problem.JPG ‏149 KB
    0.0_10__3.jpg ‏2 KB

    Hi,
    I have tried sequence structure.But sometimes it also gives blank images. I have attached new vi which is using flat sequence. Run this vi 7-8 times then you will observe blank images. I don't know why?Any help will be greatly appreciated.
    Attachments:
    image_capture_problem.vi ‏69 KB

  • Help! Menu 1 : No Background Image defined, use default blank image!

    I've compressed my video and then imported the assets into dvd sp When I click on inspector I can see it in the Browse clip window etc. BUT when I burn I get the following and nothing on my disc. What am I missing? [email protected]
    Starting DVD Build UNTITLED_DISC...
    Compiler Initializing...
    Precompiling Project UNTITLED_DISC
    Compiling VMG Information...
    Created 7 PGCs in VTSM1
    Created 8 PGCs in VMG.
    1 Menu(s) will be created...
    Compiling Menu PGCs...
    Compiling Menu#1 (Menu 1)...
    Menu 1 : No Background Image defined, use default blank image!
    Menu 1 : No Buttons defined!
    Writing VIDEO_TS.VOB
    1 VTSs and 1 Titles will be created...
    Compiling VTS#1 (Track 1)...
    Muxing VTS011.VOB
    Done.
    Linking VMG...
    Linking VTS#1...
    Writing VTS#1...
    Writing VMG...
    Writing Layout Info...
    Compile Completed Successfully
    Warning: The file ‘UNTITLED_DISC.layout’ found in the VIDEO_TS or HVDVD_TS folder will not be included in the final disc.
    Warning: The file ‘VOB_DATA.LAY’ found in the VIDEO_TS or HVDVD_TS folder will not be included in the final disc.
      Mac OS X (10.3.9)  

    Hey Kellbone
    this just means that you left your menu in your project, but you didnt delete it.
    seems that you just made yoru first play the movie.
    if you delete your menu, then you will not get that error.
    all this error means is that you did not define either buttons or a sub-picture!
    i get this error all the time with my static FBI warnings that i put in menu space, not on a VTS.
    this is NOT a fatal error, so dont worry about it. it's more like a "HEY silly, you forgot to make buttons or put a sub-picture here!".
    Mikey m.

  • System fonts Image graphics / Web Fonts

    is it really necessary to transform every system font used in any Adobe Muse project into an image graphic? I also use Adobe Muse to make keynote or powerpoint similar presentations in HTML/CSS. Which has from my point of view many advantages to offer by placing the files on a company's web server. Thus, I don't see a reason why Web Safe Fonts are not transformed into image graphics while other System Fonts will be changed into image graphics.
    Adding new Web Fonts directly in Adobe Muse is much easier and less complicated than creating kits on the typekit website and then adding the code snippets to every web page which uses the desired web font. A bit too complicated for my taste.

    Hi Aaron,
    Thanks for the prompt response. We are wondering if you could try a few other things that will help isolate the issue. Our theory is the issue might be related to OS user permissions.
    Run Adobe Muse CC as an Administrator
    Locate the "Adobe Muse CC 2014" shortcut icon in Windows Explorer
    Right-click the "Adobe Muse CC 2014" icon and then click "Run as administrator"
    When the "User Account Control" is displayed, do one of the following:
    If you are logged on as a standard user, or if the user account control is configured to always require credentials, enter the appropriate administrative credentials, and then click "OK"
    If you are logged on as an administrator and user account control is not configured to always require credentials, click "Yes" to start the application
    After Muse finishes launching, create a new site and inspect the font drop-down
    Verify "Local Store" folder permissions
    Open a Windows Explorer dialog
    In the address field enter "%appdata% and open the folder named "com.adobe.AdobeMuseCC.2014.3".The folder path should be similar to the following with <username> being the current OS user's nameC:\Users\ <username> \AppData\Roaming\com.adobe.AdobeMuseCC.2014.3
    Right-click on the folder "Local Store" and select "Properties"
    In the "Local Store Properties" tab, select "Security"
    Select the current user name from the "Group or user names" list
    Observe the section "Permissions for ...." in the "Local Store Properties" dialog. Does the user have full permissions (full control, modify, read & execute, list folder contents, read, write)?
    Do you know if the Windows OS user account you are using is an administrator or standard user on your machine? You can find out by navigating to the following in Windows Explorer and selecting "Manage User Accounts":
    Control Panel\User Accounts\User Accounts
    Please let me know if you need any clarification on what we are asking for.
    Thank you for your time in advance.
    Regards,
    Marc

  • Blank image between photo transitions

    I am using the overlap type of transition between photos and for some reason I am getting a sudden blank image prior to each of the transition effects. I have done this before without any problems, I do not know why I have this problem now. Each photo duration is 10 seconds and the transition is 2 seconds. I have varied the duration of both the photo and the transition (up and down), but it has not helped. I will appreciate any help. I am using a MacBook with OS 10.4.8 and iMovie 6.0.3(267.2)

    Please bear with me, remedina. Can I guess at a solution? I've never personally seen this problem, but it's been reported here from time to time. I don't think the cause has been found, nor a good solution.
    (To find other topics about it, search this forum for "Transition and black and frame", without the quotes. Ignore topics discussing black frames in the preview when importing images. Different problem.)
    For the record, is the "blank" frame black or white?
    My guess is iMovie is getting the math wrong while building the transition. Perhaps it's building a transition clip that is 99 frames long but it thinks it's 100 frames long. The result: a blank frame. Or it plays the clip AFTER/BEFORE the transition incorrectly, playing a frame that is "empty".
    Either way, playback is "missing" one frame. Either the transition itself is flawed or the playback of the clip that follows/precedes it is flawed.
    (Remember, iMovie modifies the playback of the original clip(s) too when you add the transition, at least for some transitions. If the new description of those clips is wrong, playback of those clips will be flawed.)
    To help iMovie get the math right while building the transition, I'd try removing one frame from the clip that FOLLOWS the planned transition. THEN add the transition.
    If that doesn't work, try removing one frame from the PRECEDING clip before adding the transition.
    I don't recall anyone reporting exactly where the flawed frame resides. Is the flawed frame in the transition clip? If so, is it the last frame of the transition? Or is it the first frame of the clip that follows the transition? Or the last frame of the clip that precedes the transition? Somewhere else?
    You should be able to tell by selecting the transition clip and using the right/left arrowkeys to play through the transition. If you see a flawed frame it's in the transition clip. If, on the other hand, you DON'T see a flawed frame but see it only when you select and play the clip following it, then the transition is okay but the error is in playing the following clip. Same with the preceding clip.
    Either way, deleting one frame from the clip AFTER the planned transition or BEFORE it may solve the problem. It changes the math. It changes any rounding calculation, for example. No promises, but it's worth a try.
    One other idea: the math error may be affected by whether or not the Ken Burns checkbox was on when you imported the image. iMovie describes the imported photo two different ways, depending on whether or not the checkbox was on. If you strike out above, you might try re-importing the image(s) using the opposite checkbox setting.
    Please let us know what you discover. Good luck.
    Karl

Maybe you are looking for