[Cuis-dev] change set to support background image #cover and #tile options

Mark Volkmann r.mark.volkmann at gmail.com
Sat Oct 5 16:24:46 PDT 2024


Here's an example of using the latest attached change set::

filePath := '/Users/volkmannm/Pictures/images/altitude1600.jpg'.
PreferenceSet sysPreferences at: #backgroundEffect put: #tile.
stream := filePath asFileEntry readStream.
self runningWorld backgroundImageData: stream binary contentsOfEntireFile.

You can also set the #backgroundEffect preference to #cover or #stretch.

On Fri, Oct 4, 2024 at 3:08 PM Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:

> I like that suggestion! Here's a new change set that uses PreferenceSet
> instead of the Smalltalk Dictionary.
>
>
> On Thu, Oct 3, 2024 at 4:11 PM Hilaire Fernandes via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> May be using Preferences for picture path and background effect..
>> Le 03/10/2024 à 20:54, Mark Volkmann via Cuis-dev a écrit :
>>
>> 2) Optionally choose a "background effect" which can be nil (current
>> stretch behavior), #cover, or #tile. I'm pretty sure this is NOT the way
>> we want to do this, but I couldn't think of another way without adding an
>> instance variable to PasteUpMorph. I'm open to suggestions on this.
>>
>> --
>> GNU Dr. Geohttp://gnu.org/s/dr-geo/http://gnu-drgeo.blogspot.com/
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241005/e833e530/attachment.htm>


More information about the Cuis-dev mailing list