Dyalog / Dyalog/documentation

User would like an explicit statement about how Coord and Size for bitmap objects work

Open
#1,021 0 comments 0 reactions 1 assignee Claimed by @FionaDyalog View on GitHub
for-triage win-obj-ref-guide
Dominant language
Python
Stars
9
Forks
7
Avg merge
1d 9h
Merged PRs (30d)
56

Description

**Describe the enhancement you would like**
User would like an explicit statement about how Coord and Size for bitmap objects work

For instance, how does Coord affect Bitmap objects.
(I don't think it does.)
Compare the following:
'bmp' ⎕wc 'bitmap' ('coord' 'prop' ) ('size' 100 100) ('bits' (1000 1000 ⍴ 1 0))
'f' ⎕wc 'form' ('coord' 'prop' ) ('size' 100 100)

bmp.⎕wg 'Size'
1000 1000

As documented in the Size Property, the Size is in Pixels. This is not affected by scaling and will be the same if the Coord is Pixel, RealPixel, or ScaledPixel

'f' ⎕wc 'form' ('coord' 'prop' ) ('size' 100 100)
f.⎕wg 'Size'
97.68518829 100

**Additional information**
The user wrote, "Several things in a Bitmap (such as CBits and Size) are always reported in Pixels, regardless of the Coord setting. But if Coord=ScaledPixel, and the system is not 100% scaled, are those measurements in ScaledPixels or in RealPixels? The documentation just says Pixels and this might need to be clarified."

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.