Examples of EdsSize


Examples of edsdk.bindings.EdsSize

                result = new String( struct.size.width + "x" +
                                     struct.size.height + ", (" +
                                     struct.point.x + ", " + struct.point.y +
                                     ")" );
            } else if ( EdsSize.class.isAssignableFrom( klass ) ) {
                final EdsSize struct = (EdsSize) value;
                result = new String( struct.width + "x" + struct.height );
            } else if ( EdsTime.class.isAssignableFrom( klass ) ) {
                final EdsTime struct = (EdsTime) value;
                result = new String( struct.year.intValue() + "-" +
                                     struct.month.intValue() + "-" +
                                     struct.day.intValue() + " " +
                                     struct.hour.intValue() + ":" +
                                     struct.minute.intValue() + ":" +
                                     struct.second.intValue() + "." +
                                     struct.milliseconds.intValue() );
            } else if ( EdsFocusInfo.class.isAssignableFrom( klass ) ) {
                final EdsFocusInfo struct = (EdsFocusInfo) value;
                // TODO: handle struct output
                result = struct.toString();
            } else if ( EdsPictureStyleDesc.class.isAssignableFrom( klass ) ) {
                final EdsPictureStyleDesc struct = (EdsPictureStyleDesc) value;
                result = new String( "\n    Color tone: " +
                                     struct.colorTone.longValue() +
                                     "\n    Contrast: " +
View Full Code Here

Examples of edsdk.bindings.EdsSize

                                               edsRect.point.y.intValue(),
                                               edsRect.size.width.intValue(),
                                               edsRect.size.height.intValue() };
                        } else if ( EdsSize.class.isAssignableFrom( klass ) ) {
                            // EdsSize
                            final EdsSize edsSize = (EdsSize) value;
                            array = new int[] { edsSize.width.intValue(),
                                               edsSize.height.intValue() };
                        } else {
                            // int[]
                            array = (int[]) value;
View Full Code Here

Examples of edsdk.bindings.EdsSize

                                    EdsRect.class.isAssignableFrom( klass ) ) {
                            // EdsRect
                            if ( data.length != 4 ) {
                                throw new IllegalStateException( "Four values expected for an EdsRect!" );
                            }
                            result = (T) new EdsRect( new EdsPoint( new NativeLong( data[0] ), new NativeLong( data[1] ) ), new EdsSize( new NativeLong( data[2] ), new NativeLong( data[3] ) ) );
                        } else if ( klass != null &&
                                    EdsSize.class.isAssignableFrom( klass ) ) {
                            // EdsSize
                            if ( data.length != 2 ) {
                                throw new IllegalStateException( "Two values expected for an EdsSize!" );
                            }
                            result = (T) new EdsSize( new NativeLong( data[0] ), new NativeLong( data[1] ) );
                        } else {
                            // int[]
                            result = (T) data;
                        }
                    }
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.