Package com.agifans.picedit.picture

Examples of com.agifans.picedit.picture.Picture.drawLine()


                            picture.addPictureCode(x, y);
                            picture.putPixel(x, y);
                            break;
                        default:
                            picture.addPictureCode(x, y);
                            picture.drawLine(previousX, previousY, x, y);
                            break;
                    }
                } else if (editStatus.isPenActive()) {
                    int disp = 0;
                    int dX = 0;
View Full Code Here


                                disp |= (0x08 | (((-1) * dY) - 0));
                            } else {
                                disp |= dY;
                            }
                            picture.addPictureCode(PictureCodeType.RELATIVE_POINT_DATA, disp, new Point(x, y));
                            picture.drawLine(previousX, previousY, x, y);
                            editStatus.setClickPoint(new Point(x, y));
                            break;
                    }
                } else if (editStatus.isBrushActive()) {
                    int patNum = 0;
View Full Code Here

                                editStatus.setStepType(StepType.YCORNER);
                                picture.addPictureCode(PictureCodeType.DRAW_VERTICAL_STEP_LINE);
                                picture.addPictureCode(previousX, previousY);
                                picture.addPictureCode(PictureCodeType.Y_POSITION_DATA, y, new Point(x, y));
                            }
                            picture.drawLine(previousX, previousY, x, y);
                            editStatus.setClickPoint(new Point(x, y));
                            break;

                        default:
                            if ((editStatus.isXCornerActive() && ((editStatus.getNumOfClicks() % 2) > 0)) || (editStatus.isYCornerActive() && ((editStatus.getNumOfClicks() % 2) == 0))) {
View Full Code Here

                                picture.addPictureCode(PictureCodeType.Y_POSITION_DATA, y, new Point(x, y));
                            } else {
                                y = previousY;
                                picture.addPictureCode(PictureCodeType.X_POSITION_DATA, x, new Point(x, y));
                            }
                            picture.drawLine(previousX, previousY, x, y);
                            editStatus.setClickPoint(new Point(x, y));
                            break;
                    }
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.