Correction: the orientation of the sample polygon is clockwise, not counter-clockwise.
--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-renderer+unsubscribe@googlegroups.com.
To post to this group, send email to marlin-renderer@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package testmarlin0811;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;
import org.marlin.graphics.MarlinGraphics2D;
public class TestMarlin0811 {
public static void main(String[] args) {
JFrame frame = new JFrame("JFrame Example");
JPanel panel = new MyPanel();
//panel.setBorder(new LineBorder(Color.BLUE));
frame.add(panel);
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
static class MyPanel extends JPanel {
int decalX = 200;
int decalY = 200;
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
BufferedImage bi = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_ARGB_PRE);
Graphics2D g2d = new MarlinGraphics2D(bi);
Path2D.Double shape = new Path2D.Double();
shape.moveTo(0+decalX, 50+decalY);
shape.lineTo(0+decalX, 0+decalY);
shape.lineTo(50+decalX, 0+decalY);
shape.lineTo(50+decalX, 50+decalY);
shape.lineTo(0+decalX, 50+decalY);
g2d.setColor(Color.red);
g2d.fill(shape);
g.drawImage(bi, 0, 0, this);
}
}
}Laurent
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-render...@googlegroups.com.
To post to this group, send email to marlin-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-renderer+unsubscribe@googlegroups.com.
To post to this group, send email to marlin-renderer@googlegroups.com.
--
Laurent Bourgès
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;
import org.marlin.graphics.MarlinGraphics2D;
public class TestMarlin0812 {
public static void main(String[] args) {
JFrame frame = new JFrame("JFrame Example");
JPanel panel = new MyPanel();
frame.add(panel);
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
static class MyPanel extends JPanel {
int decalX = -100;
int decalY = -100;
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
BufferedImage bi = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_ARGB_PRE);
Graphics2D g2d = new MarlinGraphics2D(bi);
Path2D.Double shape = new Path2D.Double();
shape.moveTo(0+decalX, 300+decalY);
shape.lineTo(0+decalX, 0+decalY);
shape.lineTo(300+decalX, 0+decalY);
shape.lineTo(300+decalX, 300+decalY);
shape.lineTo(0+decalX, 300+decalY);Hi again.
I'm sad to learn you stop developping new feature to Marlin, but I understand your point of view. It is a great job and you can be proud of yourself.
I still have the "triangle bug" with Marlin 8.1.2.
To see this bug, you just need to fill a square shape with all the corners out of the window (like a square on which you have made a deep zoom).
Then sometimes, the square appear like a triangle.
Changes:
Thanks for your continued work on Marlin.
I can offer some support in benchmarking the changes as they reach JavaFX. I don't fully understand how Marlin changes get pushed into MarlinFX but I have a public JavaFX build server and would be happy to work with you to produce early access JDK builds that include the latest MarlinFX changes.
I can also develop some specific effects in my DemoFX system for benchmarking MarlinFX changes.
--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-renderer+unsubscribe@googlegroups.com.
To post to this group, send email to marlin-renderer@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-renderer+unsubscribe@googlegroups.com.
To post to this group, send email to marlin-renderer@googlegroups.com.