Skip to content

Does the multisampling work? #11

@yaqwsx

Description

@yaqwsx

I use the library version from the master branch. I have a following snippet to create a CBDDLP file from a list of images:

mars = Photon()
mars.layer_levels = mars.anti_aliasing_level = aaLevel
mars.exposure_time = exposure
mars.exposure_time_bottom = bottomExposure
mars.layer_height = layerHeight
mars.bottom_layers = bottomCount

files = list(glob.glob(globPattern))
for i, file in enumerate(files):
    report(i + 1, len(files))
    layerImage = Image.open(file).convert("L")
    mars.append_layer(
        [imageToRle(layerImage.point(lambda x: threshold(i / aaLevel, x)))
            for i in range(aaLevel)])
mars.write(outfilename)

I supplied a single layer with a gradient black/white and used level 8 of anti-aliasing I was expecting to see 8 images - with more a more exposed area of the display. However, that was not the case, neither saw I a gradient. Does the AA feature of this library works?

The file I generated: http://files.honzamrazek.cz/grad2.cbddlp

Could you try the file on your printer? How is the AA feature supposed to work?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions