Thread: merging four c,m,y,k single band tiff into one cmyk tiff
Started 1 month, 1 week ago by mr_empty
hi all,
i 'm new in java2d and now i want to combine four colorspace c,m,y,k tiff file into one cmyk tiff file. I used bandmerge operator to create and save the image. but the image cannot be viewed by fax viewer and it appears to be white in photoshop.
here is my code:
String[] args={"f:\\tiff\\c.tif","f:\\tiff\\m.tif","f:\\tif f\\y.tif","f:\\tiff\\k.tif"};
PlanarImage[] inputs = new ...
Adi1000 wrote:
Can someone help me with multithreading here ?
You might want to ask a more specific question than that. Where exactly are you stuck? What exactly don't you understand?
Check out java's concurrency tutorial for help with general multithreading.
Adi1000 wrote:
Can someone help me with multithreading here ?
Agree that this request is a bit overly general. In addition to the tutorial noted above, please have a look at this Swing-specific tutorial on Concurrency in Swing.
Also a quick peek at your code suggests that
1) you are trying to create and start a new Thread from within the paintComponent method. Please don't do ...
This code is starting a thread with an empty run method :
package game;
public class Main {
public static void main(String[] args) {
new Thread( new GameEngine()).start();
}
}
-> GameEngine.java
public void run() {
}
The singleton pattern used in GameEngine needs reworking (The constructor is not private), and ...
I need to know how to convert a black and white image into a matrix form.
I have loaded a file using BuffredImage class.
But dont know how to get the matrix form..
Somebody help me out with the code please.........
I'm not quite sure that my question is appropiate for this subforum but I don't really know where to post it.
I'm trying to write a small game (in which you destroy blocks with a ball on the top of the window). I first wrote a piece of the program (in which you move the bar to catch the ball at the bottom of the window) without a background and that went rather smoothly. But when I painted ...
Learn to do custom painting the correct way:
http://java.sun.com/docs/books/tutorial/uiswing/pa inting/index.html
And don't use getGraphics() for a component.
db
Hello all:
I got something strange when turning on the OpenGL pipeline for Java2D on a 64-bit Vista Biz(sp2) with a dual-monitor (extend desktop) configuration. (jvm6u16 64bit, nvidia 8600gt, driver version:190.60)
Even the simplest swing app shows just a transparent window at the very beginning. When I tries to resize it, it got successfully repainted ONLY on the second monitor.
...
Hi everyone,
I am writing a OCR programme with Java. However, I am facing a problem about image processing.
This part is the database creation. Suppose all data can be gotten by the get method with a fixed processing time.
Here is the sample coding of my programme.
int numberOfLine = getLineMethod();
ArrayList<CharInfo> arrList = new ArrayList<CharInfo>();
for( int i = 0 ; i < ...
To try to code graphics without doing this is about as useful as groping about in the dark. But groping about in the dark is so much fun ;-) ;-) Oh wait, we're talking about programming here :( db
That black part is part of your image. The condition for using the code in my reply above was that the image has an alpha channel. Your image has no alpha channel . Use one of either TYPE_INT_ARGB, TYPE_4BYTE_ABGR, TYPE_INT_ARGB_PRE, TYPE_4BYTE_ABGR_PRE, or GraphicsConfiguration#createCompatibleImage(int width, int height, Transparency.BITMASK)
Lil_chidya wrote: now nothing appears when i click the jButton1 And when do you actually call that method? Without the SSCCE we asked for, I can't help you any more.
Create a new BufferedImage with the dimensions of all the images you want combined, then paint all the images into it through the Graphics object you can obtain from the BufferedImage. Then write out the image using the ImageIO class.
Raja.Sivagurunathan wrote: ..Here is my code snippet. How do you know the problem is in the snippet? Maybe it is some other part of the code you did not post. Either way, I do not have time to pore over code snippets, in the hope they are the right parts of the code, looking for solutions. ... Please help me to solve this problem. I will look further into the code if you post an SSCCE (<- link). Note that if you reply to me and post...
milantomic123 wrote: I have just used wikipedia to see what the hell now "rhetorical" means and I can say only: no, no, no, it is not rhetorical, please answer my post! :) I already gave you the answer, but since it seems you have no interest in reading / pursuing my /our advice, I can only assume that all of this is just a log to yourself.
Then you need to go back and read the tutorial on graphics, post some code--a short working model showing your problem. When you make a GUI and use a JPanel to show your image, you override the paintComponent to show the image, it will not affect your layout.
Actually im tring to make a funny game. Thats why i need the code. I know that i can use math in this but the problem is i have 2 points so i can have a straight line equation. Now i need to know 1 coordinat (x or y) at the terminal or i cant derive the second one. 4 sides in a frame 4 different known coordinate (like up side will always y=0, down x=MAX). So there are 4 cases. But how can i determine which edge it is. How can i fit these...
Hat jemand einen Tip für mich, wie/womit man eine... Hat jemand einen Tip für mich, wie/womit man eine einfache, non-public Bilddatenbank im Web aufbauen kann? Muss mit TIFF/CMYK zurechtkommen.
3:09 AM Jun 8th
from Tweetie
Gearing up for a day full of four TIFF screenings on... Gearing up for a day full of four TIFF screenings on Friday.. will need to grab a nap at some point.. probably as I stand in line...
10:06 PM September 11, 2008
from web
Thread profile page for "merging four c,m,y,k single band tiff into one cmyk tiff" on http://www.sun.com.
This report page is a snippet summary view from a single thread "merging four c,m,y,k single band tiff into one cmyk tiff", located on the Message Board at http://www.sun.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity