Skip to content

b.imageMode() is sometimes ignored #118

Open
@trych

Description

@trych

While in class for most people (~80 % maybe) b.imageMode() did not work. Also images were drawn from center by default, which they should not. b.imageMode(b.CORNER) could not fix this behavior, so it had to be manually fixed by using b.transformImage() to the desired position.

This might be connected to the InDesign version, on my CS6 at home it works fine, at the uni's CC2015 it had the issue. Unfortunately I cannot test the CC2015 really well, as I don't have it at home.

Maybe someone could give this a try in a version newer than CS6:

#includepath "~/Documents/;%USERPROFILE%Documents";
#include "basiljs/bundle/basil.js";

function draw() {

  b.image('image-example.jpg', 0, 0);

}

b.go();

This should draw from the top left corner, but in class for most people placed the image's center at the top left corner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions