Git Product home page Git Product logo

Comments (7)

yackle avatar yackle commented on June 9, 2024

OK. Do you mean the aspect ratio?

from climageeditor.

dkhamsing avatar dkhamsing commented on June 9, 2024

Yeah it would be great if custom, ratios and portrait/landscape buttons were optional :-)

from climageeditor.

yackle avatar yackle commented on June 9, 2024

I get it. I'll try.

from climageeditor.

yackle avatar yackle commented on June 9, 2024

Customizing for the clipping tool is implemented in develop branch.

Usage:

NSArray *ratios = @[
                    @{@"value1":@0, @"value2":@0,       @"titleFormat":@"Custom"}, // if either value is zero, free form is set.
                    @{@"value1":@1, @"value2":@1,       @"titleFormat":@"%.1f : %.1f"},
                    @{@"value1":@1, @"value2":@1.618,   @"titleFormat":@"%g : %g"},
                    @{@"value1":@2, @"value2":@3},
                    @{@"value1":@3, @"value2":@2},
                    ];

CLImageToolInfo *tool = [editor.toolInfo subToolInfoWithToolName:@"CLClippingTool" recursive:NO];
tool.optionalInfo[@"ratios"] = ratios;
tool.optionalInfo[@"swapButtonHidden"] = @YES;

How does that sounds?

from climageeditor.

dkhamsing avatar dkhamsing commented on June 9, 2024

Wow
Looks great

from climageeditor.

dkhamsing avatar dkhamsing commented on June 9, 2024

Just tried it with

   NSArray *ratios = @[
                            @{@"value1":@1, @"value2":@1,       @"titleFormat":@"%.1f : %.1f"},                            
                            ];

        CLImageToolInfo *tool = [editor.toolInfo subToolInfoWithToolName:@"CLClippingTool" recursive:NO];
        tool.optionalInfo[@"ratios"] = ratios;
        tool.optionalInfo[@"swapButtonHidden"] = @YES;

Excellent

ios simulator screen shot jan 21 2014 11 13 25 am

from climageeditor.

yackle avatar yackle commented on June 9, 2024

Glad to hear that! Then I'll push to master.

from climageeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.