Package edsdk.api

Examples of edsdk.api.CanonCamera.openSession()


public class Test {

    public static void main( final String[] args ) throws InterruptedException, IOException {
        final CanonCamera camera = new CanonCamera();

        if ( camera.openSession() ) {

            Long lvalue = Test.printProperty( camera, EdsPropertyID.kEdsPropID_BatteryLevel );
            System.out.println( lvalue == 0xffffffff
                                                    ? "On AC power"
                                                    : "On battery, value is percentage remaining." );
View Full Code Here


*/
public class CameraImageQuality {

    public static void main( final String[] args ) throws InterruptedException, IOException {
        final CanonCamera camera = new CanonCamera();
        camera.openSession();

        final long imageQuality = camera.getProperty( EdsPropertyID.kEdsPropID_ImageQuality );

        /*
         * kEdsPropID_ImageQuality
 
View Full Code Here

*/
public class E04_LiveView {

    public static void main( final String[] args ) throws InterruptedException {
        final CanonCamera camera = new CanonCamera();
        if ( camera.openSession() ) {
            if ( camera.beginLiveView() ) {
                final JFrame frame = new JFrame( "Live view" );
                final JLabel label = new JLabel();
                frame.getContentPane().add( label, BorderLayout.CENTER );
                frame.setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );
View Full Code Here

public class E06_ListImageQuality {

  public static void main(String[] args) {
    CanonCamera cam = new CanonCamera();
    cam.openSession();
   
    // if you check out the CanonCamera class you'll find that there
    // are getAvailableXXX methods for all kinds of things!
    EdsImageQuality[] sizes = cam.getAvailableImageQualities()
    for( EdsImageQuality size : sizes ){
View Full Code Here

public class E02_Simpler {

    public static void main( final String[] args ) throws InterruptedException, IOException {
        final CanonCamera camera = new CanonCamera();

        if ( camera.openSession() ) {
            final File[] photos = camera.shoot( EdsSaveTo.kEdsSaveTo_Host );

            if ( photos != null ) {
                for ( final File photo : photos ) {
                    if ( photo != null ) {
View Full Code Here

public class E05_Timelapse {

    public static void main( final String[] args ) throws InterruptedException {
        //Native.setProtected( true );
        final CanonCamera camera = new CanonCamera();
        if ( camera.openSession() ) {

            E05_Timelapse.createUI( camera );

            while ( true ) {
                System.out.println( "=========================================" );
View Full Code Here

*/
public class E03_Mixed {

    public static void main( final String[] args ) throws InterruptedException {
        final CanonCamera camera = new CanonCamera();
        if ( camera.openSession() ) {

            final boolean result = camera.executeNow( new CanonCommand<Boolean>() {

                @Override
                public void run() {
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.