Re: Converting pictures

2019-01-02 Thread Alan Tilson via 4D_Tech
Seems fixed but I'll need to rerun the check at some point to confirm.
Thanks again everyone!
Alan

On Wed, Jan 2, 2019 at 11:43 AM Alan Tilson  wrote:

> Hello again,
>
> Process works, although I do have to manually rename and reposition the
> images pasted into v17.
>
> Shouldn't take too long...
>
> Alan
>
> On Wed, Jan 2, 2019 at 11:20 AM Alan Tilson  wrote:
>
>> Hello John, Ernie & Chuck,
>>
>> Thank you for your responses. I'm just getting back to this...
>>
>> I have 38 instances I believe of static PICT images in our v17 db. So
>> while I'd love to automate this it is not so big really that I can't just
>> work through it.
>>
>> John - I tried your code but it doesn't work. It runs but when I paste
>> the image back onto the form it is the same .pict image. I suspect that I
>> need to run this in v13 and then paste the results into v17. I'll try that.
>> But I seem to remember that the transparency code needs to run in v17. So
>> maybe I need 2 steps...
>>
>> Ernie - I like the idea of converting my static pictures into library
>> pictures, but I suspect I'll have the same v13/v17 issues. I do have some
>> v13 code to convert the library pictures and some v17 code to set the
>> transparency.
>>
>> Chuck - do you think this would be a v17 component that would simplify
>> this process? I do plan to try the v13/v17 idea first I suppose.
>>
>> Thanks again,
>> Alan
>>
>>
>>
>> On Sun, Dec 30, 2018 at 10:21 PM Chuck Miller via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>
>>> Yes there is. JPR gave a demo of just the ticket , a component that did
>>> this.
>>>
>>> regards
>>>
>>> chuck
>>>
>>> 
>>>  Chuck Miller Voice: (617) 739-0306
>>>  Informed Solutions, Inc. Fax: (617) 232-1064
>>>  mailto:cjmillerinformed-solutions.com
>>>  Brookline, MA 02446 USA Registered 4D Developer
>>>Providers of 4D and Sybase connectivity
>>>   http://www.informed-solutions.com
>>>
>>> 
>>> This message and any attached documents contain information which may be
>>> confidential, subject to privilege or exempt from disclosure under
>>> applicable law.  These materials are intended only for the use of the
>>> intended recipient. If you are not the intended recipient of this
>>> transmission, you are hereby notified that any distribution, disclosure,
>>> printing, copying, storage, modification or the taking of any action in
>>> reliance upon this transmission is strictly prohibited.  Delivery of this
>>> message to any person other than the intended recipient shall not
>>> compromise or waive such confidentiality, privilege or exemption from
>>> disclosure as to this communication.
>>>
>>> > On Dec 28, 2018, at 2:32 PM, Alan Tilson via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>> >
>>> > Hello everyone,
>>> >
>>> > Is there code that can convert static PICT images to PNG, images not
>>> in a
>>> > library?
>>> >
>>> > Thanks,
>>> > Alan
>>>
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>>
>>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures

2019-01-02 Thread Alan Tilson via 4D_Tech
Hello again,

Process works, although I do have to manually rename and reposition the
images pasted into v17.

Shouldn't take too long...

Alan

On Wed, Jan 2, 2019 at 11:20 AM Alan Tilson  wrote:

> Hello John, Ernie & Chuck,
>
> Thank you for your responses. I'm just getting back to this...
>
> I have 38 instances I believe of static PICT images in our v17 db. So
> while I'd love to automate this it is not so big really that I can't just
> work through it.
>
> John - I tried your code but it doesn't work. It runs but when I paste the
> image back onto the form it is the same .pict image. I suspect that I need
> to run this in v13 and then paste the results into v17. I'll try that. But
> I seem to remember that the transparency code needs to run in v17. So maybe
> I need 2 steps...
>
> Ernie - I like the idea of converting my static pictures into library
> pictures, but I suspect I'll have the same v13/v17 issues. I do have some
> v13 code to convert the library pictures and some v17 code to set the
> transparency.
>
> Chuck - do you think this would be a v17 component that would simplify
> this process? I do plan to try the v13/v17 idea first I suppose.
>
> Thanks again,
> Alan
>
>
>
> On Sun, Dec 30, 2018 at 10:21 PM Chuck Miller via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Yes there is. JPR gave a demo of just the ticket , a component that did
>> this.
>>
>> regards
>>
>> chuck
>>
>> 
>>  Chuck Miller Voice: (617) 739-0306
>>  Informed Solutions, Inc. Fax: (617) 232-1064
>>  mailto:cjmillerinformed-solutions.com
>>  Brookline, MA 02446 USA Registered 4D Developer
>>Providers of 4D and Sybase connectivity
>>   http://www.informed-solutions.com
>>
>> 
>> This message and any attached documents contain information which may be
>> confidential, subject to privilege or exempt from disclosure under
>> applicable law.  These materials are intended only for the use of the
>> intended recipient. If you are not the intended recipient of this
>> transmission, you are hereby notified that any distribution, disclosure,
>> printing, copying, storage, modification or the taking of any action in
>> reliance upon this transmission is strictly prohibited.  Delivery of this
>> message to any person other than the intended recipient shall not
>> compromise or waive such confidentiality, privilege or exemption from
>> disclosure as to this communication.
>>
>> > On Dec 28, 2018, at 2:32 PM, Alan Tilson via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> >
>> > Hello everyone,
>> >
>> > Is there code that can convert static PICT images to PNG, images not in
>> a
>> > library?
>> >
>> > Thanks,
>> > Alan
>>
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures

2019-01-02 Thread Alan Tilson via 4D_Tech
Hello John, Ernie & Chuck,

Thank you for your responses. I'm just getting back to this...

I have 38 instances I believe of static PICT images in our v17 db. So while
I'd love to automate this it is not so big really that I can't just work
through it.

John - I tried your code but it doesn't work. It runs but when I paste the
image back onto the form it is the same .pict image. I suspect that I need
to run this in v13 and then paste the results into v17. I'll try that. But
I seem to remember that the transparency code needs to run in v17. So maybe
I need 2 steps...

Ernie - I like the idea of converting my static pictures into library
pictures, but I suspect I'll have the same v13/v17 issues. I do have some
v13 code to convert the library pictures and some v17 code to set the
transparency.

Chuck - do you think this would be a v17 component that would simplify this
process? I do plan to try the v13/v17 idea first I suppose.

Thanks again,
Alan



On Sun, Dec 30, 2018 at 10:21 PM Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yes there is. JPR gave a demo of just the ticket , a component that did
> this.
>
> regards
>
> chuck
>
> 
>  Chuck Miller Voice: (617) 739-0306
>  Informed Solutions, Inc. Fax: (617) 232-1064
>  mailto:cjmillerinformed-solutions.com
>  Brookline, MA 02446 USA Registered 4D Developer
>Providers of 4D and Sybase connectivity
>   http://www.informed-solutions.com
>
> 
> This message and any attached documents contain information which may be
> confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution, disclosure,
> printing, copying, storage, modification or the taking of any action in
> reliance upon this transmission is strictly prohibited.  Delivery of this
> message to any person other than the intended recipient shall not
> compromise or waive such confidentiality, privilege or exemption from
> disclosure as to this communication.
>
> > On Dec 28, 2018, at 2:32 PM, Alan Tilson via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hello everyone,
> >
> > Is there code that can convert static PICT images to PNG, images not in a
> > library?
> >
> > Thanks,
> > Alan
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures

2018-12-30 Thread Chuck Miller via 4D_Tech
Yes there is. JPR gave a demo of just the ticket , a component that did this.

regards

chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Dec 28, 2018, at 2:32 PM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hello everyone,
> 
> Is there code that can convert static PICT images to PNG, images not in a
> library?
> 
> Thanks,
> Alan

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures

2018-12-28 Thread JOHN BAUGHMAN via 4D_Tech
What I did was cut each picture off the form to the pasteboard run the 
following code then paste it back into the form…

C_PICTURE($picture_c)
GET PICTURE FROM PASTEBOARD($picture_c)
  // convert the picture
CONVERT PICTURE($picture_c;".png")

  // make all white pixels transparent
TRANSFORM PICTURE($picture_c;Transparency;0x00FF)

SET PICTURE TO PASTEBOARD($picture_c)

Perhaps the is a way to automate this but just did it manually.

John




> On Dec 28, 2018, at 9:32 AM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hello everyone,
> 
> Is there code that can convert static PICT images to PNG, images not in a
> library?
> 
> Thanks,
> Alan
> 
> On Tue, Oct 23, 2018 at 4:17 PM Timothy Penner via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Hi Setar,
>> 
>> The v13 code to convert PICT -> PNG is here:
>> http://kb.4d.com/assetid=76775
>> ^ There is no transparency option in that code.
>> 
>> While the following code was published for v16:
>> http://kb.4d.com/assetid=77963
>> ^ This one uses the transparency option.
>> 
>> Regarding 4D Pack, it should exist in v16 but it is no longer available in
>> newer versions:
>> http://livedoc.4d.com/4Dv17/help/Title/en/page3607.html#3188011
>> {
>> Over the course of different versions, the most useful 4D Pack routines
>> were progressively integrated into 4D itself, while those that became
>> obsolete were removed. Starting with 4D v16 R2, the 4D Pack plug-in is no
>> longer provided in versions of 4D. Refer to the table below to find out the
>> replacement solutions available (if any) for 4D Pack routines.
>> }
>> 
>> -Tim
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures

2018-12-28 Thread Alan Tilson via 4D_Tech
Hello everyone,

Is there code that can convert static PICT images to PNG, images not in a
library?

Thanks,
Alan

On Tue, Oct 23, 2018 at 4:17 PM Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Setar,
>
> The v13 code to convert PICT -> PNG is here:
> http://kb.4d.com/assetid=76775
> ^ There is no transparency option in that code.
>
> While the following code was published for v16:
> http://kb.4d.com/assetid=77963
> ^ This one uses the transparency option.
>
> Regarding 4D Pack, it should exist in v16 but it is no longer available in
> newer versions:
> http://livedoc.4d.com/4Dv17/help/Title/en/page3607.html#3188011
> {
> Over the course of different versions, the most useful 4D Pack routines
> were progressively integrated into 4D itself, while those that became
> obsolete were removed. Starting with 4D v16 R2, the 4D Pack plug-in is no
> longer provided in versions of 4D. Refer to the table below to find out the
> replacement solutions available (if any) for 4D Pack routines.
> }
>
> -Tim
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Converting pictures

2018-10-23 Thread Timothy Penner via 4D_Tech
Hi Setar,

The v13 code to convert PICT -> PNG is here: http://kb.4d.com/assetid=76775
^ There is no transparency option in that code.

While the following code was published for v16: http://kb.4d.com/assetid=77963
^ This one uses the transparency option.

Regarding 4D Pack, it should exist in v16 but it is no longer available in 
newer versions:
http://livedoc.4d.com/4Dv17/help/Title/en/page3607.html#3188011
{
Over the course of different versions, the most useful 4D Pack routines were 
progressively integrated into 4D itself, while those that became obsolete were 
removed. Starting with 4D v16 R2, the 4D Pack plug-in is no longer provided in 
versions of 4D. Refer to the table below to find out the replacement solutions 
available (if any) for 4D Pack routines.
}

-Tim



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Randy Jaynes via 4D_Tech

> On Jul 9, 2018, at 3:28 PM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> Randy - RE: You can use the MSC in v16 to flush out all the forms
> 
> Yes, this works well, and JPR's component does a lot of the same thing. In 
> working out the problems, I found however that what looked to be a 
> transparent background in 32 bit is not transparent in 64 bit (see above, 
> I now have a white box around many of my icons), so I think I need an 
> external drawing program to somehow convert the white background to 
> "transparent".

We had resolved this by using the picture conversion method from a tech note or 
tech tip…not sure if it’s the one others pointed out, but we did have to use 
that to export our entire picture library out to PNG files and get the 
transparency.

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com  • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com 





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Keisuke Miyako via 4D_Tech
seems "paint.net" as a URL offers physical paint.

"paint.NET" the software can be found at "https://www.getpaint.net;




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread David Ringsmuth via 4D_Tech
Bob,

I use Paint.net. It’s shareware.

I have used it many times to create a transparent background.

David Ringsmuth

From: Bob Miller via 4D_Tech
Sent: Monday, July 9, 2018 10:20 AM
To: 4d_tech@lists.4d.com
Cc: Bob Miller
Subject: Converting pictures on 4D forms (Windows) to get transparency

Hi Everyone,

I'm in the process of going through a database to convert all the 
pictures, icons, and such in it so I can use the database with 64-bit 4D 
v16 (and eventually v17).

The documentation is pretty clear that even though any images pasted in 
did not start life as PICTS - and I'm talking about things like arrows, 
some icons, line drawings, navigation tools, etc., that are part of the 
user interface, not actual photo type pictures -  4D would receive and 
store them as PICTS, so you have to find each one and convert it.

To do this, I'm using JPR's Picture Conversion utility that he provided on 
the 2017 4D Road Tour.  It does a fine job as it can scan all the forms, 
find the offending pictures, list them, and then provides a utility where 
you can either convert them and put them into the picture library or 
convert them and put them into an external folder.
 
One thing I'm finding is that the conversion doesn't support transparency, 
so I end up with pictures that have white backgrounds, which doesn't look 
nice.  Here is part of a thread from me to JPR:

Me: When I drag a Static Picture to the converter, then back to the form, 
it seems to lose its transparency, even though the 'Transparent' property 
is turned ON.  How can this be fixed?
JPR> It cannot. The transparency done previously by 4D was just a trick 
replacing the white pixels with the background color dynamically, because 
the concept of transparency didn't exist at this time (like in PICT, JPEG, 
etc.) 
JPR> Now 4D uses the modern toolbox which relies on the picture 
transparency information coming from the alpha channel. So if you want 
transparent pictures, you must convert into a format supporting alpha 
channel (like PNG) and use any software able to add the alpha layer to 
your pictures.  On Mac, the simplest one to add alpha channel is 
PaintBrush (from Soggy Waffles). You add transparency with the paint Fill 
tool


The problem is that I'm on Windows.  Does anyone have a recommendation for 
fast technique that they've used that supports this "alpha channel' so I 
can convert my non-transparent images so that they are transparent again? 
It looks so bad having an arrow on a form with a big white background.

Thank you -


Bob Miller
Chomerics, a division of Parker Hannifin Corporation 


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Jim Dorrance via 4D_Tech
Hi Bob,

2 suggestions:

Buy a MacMini for the office.
Hire a Mac developper for 1 day to arrange all that.

Jim

On Mon, Jul 9, 2018 at 5:20 PM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> Hi Everyone,
>
> I'm in the process of going through a database to convert all the
> pictures, icons, and such in it so I can use the database with 64-bit 4D
> v16 (and eventually v17).
>
> The documentation is pretty clear that even though any images pasted in
> did not start life as PICTS - and I'm talking about things like arrows,
> some icons, line drawings, navigation tools, etc., that are part of the
> user interface, not actual photo type pictures -  4D would receive and
> store them as PICTS, so you have to find each one and convert it.
>
> To do this, I'm using JPR's Picture Conversion utility that he provided on
> the 2017 4D Road Tour.  It does a fine job as it can scan all the forms,
> find the offending pictures, list them, and then provides a utility where
> you can either convert them and put them into the picture library or
> convert them and put them into an external folder.
>
> One thing I'm finding is that the conversion doesn't support transparency,
> so I end up with pictures that have white backgrounds, which doesn't look
> nice.  Here is part of a thread from me to JPR:
>
> Me: When I drag a Static Picture to the converter, then back to the form,
> it seems to lose its transparency, even though the 'Transparent' property
> is turned ON.  How can this be fixed?
> JPR> It cannot. The transparency done previously by 4D was just a trick
> replacing the white pixels with the background color dynamically, because
> the concept of transparency didn't exist at this time (like in PICT, JPEG,
> etc.)
> JPR> Now 4D uses the modern toolbox which relies on the picture
> transparency information coming from the alpha channel. So if you want
> transparent pictures, you must convert into a format supporting alpha
> channel (like PNG) and use any software able to add the alpha layer to
> your pictures.  On Mac, the simplest one to add alpha channel is
> PaintBrush (from Soggy Waffles). You add transparency with the paint Fill
> tool
>
>
> The problem is that I'm on Windows.  Does anyone have a recommendation for
> fast technique that they've used that supports this "alpha channel' so I
> can convert my non-transparent images so that they are transparent again?
> It looks so bad having an arrow on a form with a big white background.
>
> Thank you -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged.
> It only should be used or disseminated for the purpose of conducting
> business with Parker. If you are not an intended recipient, please notify
> the sender by replying to this message and then delete the information from
> your system. Thank you for your cooperation."
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Chuck Miller via 4D_Tech
Add the line after convert
TRANSFORM PICTURE($vPict;Transparency;0x00FF)

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Jul 9, 2018, at 3:28 PM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Thanks to all who replied so far.  I've been trying different things.
> 
> Vance - RE: Can you make a picture have an opaque effect?

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Bob Miller via 4D_Tech
Thanks to all who replied so far.  I've been trying different things.

Vance - RE: Can you make a picture have an opaque effect?

This isn't what I want to do; the pictures have an opaque effect where the 
white backgrounds are opaque when what I want is for the background to be 
transparent, so the icon does not appear to have a square border.  If the 
background is transparent, the icon can sit on the form and the color of 
the form surrounds the icon, which looks better.


Randy - RE: You can use the MSC in v16 to flush out all the forms

Yes, this works well, and JPR's component does a lot of the same thing. In 
working out the problems, I found however that what looked to be a 
transparent background in 32 bit is not transparent in 64 bit (see above, 
I now have a white box around many of my icons), so I think I need an 
external drawing program to somehow convert the white background to 
"transparent".


Cannon - Thanks, I had not seen that tech note.  I'm already in v15 and do 
not have the plugin, so I tried using the same concept on a single member 
of the picture library that I knew had a transparency issue.  The result 
was that the entire picture became transparent, so something clearly (to 
make a pun) went wrong!  I'll investigate this a bit more, but I'm afraid 
that what I really need is something that can 'lasso' an image to find the 
outermost border, then set everything outside that border to transparent - 
which would be tough to do in code.

Keep those ideas coming!


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Randy Jaynes via 4D_Tech
Bob,

You can use the MSC in v16 to flush out all the forms where bad pictures are 
located, as well as bad picture library items and their references.

Then use the picture conversion routine mentioned to convert the pictures to 
PNGs. We did this a couple months ago to prepare for our move to v16 and it 
worked well.

After doing all this, I discovered that there will also be potential issues 
with logos and pictures that you allowed users to put into their data. When you 
display the picture fields on a form, if the it is in PICT format you'll get 
that pretty camera with an X through it. ;-)

At any rate, start with the MSC in v16. It will quickly and easily point out 
what you need to fix in your structure.

HTH,
Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com  • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com 





> On Jul 9, 2018, at 11:20 AM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> Hi Everyone,
> 
> I'm in the process of going through a database to convert all the 
> pictures, icons, and such in it so I can use the database with 64-bit 4D 
> v16 (and eventually v17).
> 
> The documentation is pretty clear that even though any images pasted in 
> did not start life as PICTS - and I'm talking about things like arrows, 
> some icons, line drawings, navigation tools, etc., that are part of the 
> user interface, not actual photo type pictures -  4D would receive and 
> store them as PICTS, so you have to find each one and convert it.
> 
> To do this, I'm using JPR's Picture Conversion utility that he provided on 
> the 2017 4D Road Tour.  It does a fine job as it can scan all the forms, 
> find the offending pictures, list them, and then provides a utility where 
> you can either convert them and put them into the picture library or 
> convert them and put them into an external folder.
> 
> One thing I'm finding is that the conversion doesn't support transparency, 
> so I end up with pictures that have white backgrounds, which doesn't look 
> nice.  Here is part of a thread from me to JPR:
> 
> Me: When I drag a Static Picture to the converter, then back to the form, 
> it seems to lose its transparency, even though the 'Transparent' property 
> is turned ON.  How can this be fixed?
> JPR> It cannot. The transparency done previously by 4D was just a trick 
> replacing the white pixels with the background color dynamically, because 
> the concept of transparency didn't exist at this time (like in PICT, JPEG, 
> etc.) 
> JPR> Now 4D uses the modern toolbox which relies on the picture 
> transparency information coming from the alpha channel. So if you want 
> transparent pictures, you must convert into a format supporting alpha 
> channel (like PNG) and use any software able to add the alpha layer to 
> your pictures.  On Mac, the simplest one to add alpha channel is 
> PaintBrush (from Soggy Waffles). You add transparency with the paint Fill 
> tool
> 
> 
> The problem is that I'm on Windows.  Does anyone have a recommendation for 
> fast technique that they've used that supports this "alpha channel' so I 
> can convert my non-transparent images so that they are transparent again? 
> It looks so bad having an arrow on a form with a big white background.
> 
> Thank you -
> 
> 
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation 
> 
> 
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged. It 
> only should be used or disseminated for the purpose of conducting business 
> with Parker. If you are not an intended recipient, please notify the sender 
> by replying to this message and then delete the information from your system. 
> Thank you for your cooperation."
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html 
> Archive:  http://lists.4d.com/archives.html 
> 
> Options: https://lists.4d.com/mailman/options/4d_tech 
> 
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> 
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Vance Villanueva via 4D_Tech
Hi Bob,

Can you make a picture have an opaque effect?

http://kb.4d.com/assetid=77891

Regards,

Vance Villanueva




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Bob Miller via 
4D_Tech
Sent: Monday, July 09, 2018 8:20 AM
To: 4d_tech@lists.4d.com
Cc: Bob Miller
Subject: Converting pictures on 4D forms (Windows) to get transparency

Hi Everyone,

I'm in the process of going through a database to convert all the
pictures, icons, and such in it so I can use the database with 64-bit 4D
v16 (and eventually v17).

The documentation is pretty clear that even though any images pasted in
did not start life as PICTS - and I'm talking about things like arrows,
some icons, line drawings, navigation tools, etc., that are part of the
user interface, not actual photo type pictures -  4D would receive and
store them as PICTS, so you have to find each one and convert it.

To do this, I'm using JPR's Picture Conversion utility that he provided on
the 2017 4D Road Tour.  It does a fine job as it can scan all the forms,
find the offending pictures, list them, and then provides a utility where
you can either convert them and put them into the picture library or
convert them and put them into an external folder.

One thing I'm finding is that the conversion doesn't support transparency,
so I end up with pictures that have white backgrounds, which doesn't look
nice.  Here is part of a thread from me to JPR:

Me: When I drag a Static Picture to the converter, then back to the form,
it seems to lose its transparency, even though the 'Transparent' property
is turned ON.  How can this be fixed?
JPR> It cannot. The transparency done previously by 4D was just a trick
replacing the white pixels with the background color dynamically, because
the concept of transparency didn't exist at this time (like in PICT, JPEG,
etc.)
JPR> Now 4D uses the modern toolbox which relies on the picture
transparency information coming from the alpha channel. So if you want
transparent pictures, you must convert into a format supporting alpha
channel (like PNG) and use any software able to add the alpha layer to
your pictures.  On Mac, the simplest one to add alpha channel is
PaintBrush (from Soggy Waffles). You add transparency with the paint Fill
tool


The problem is that I'm on Windows.  Does anyone have a recommendation for
fast technique that they've used that supports this "alpha channel' so I
can convert my non-transparent images so that they are transparent again?
It looks so bad having an arrow on a form with a big white background.

Thank you -


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Charles Miller via 4D_Tech
Hi bob I will forward the one lie. Of code you need to add when I get back
to office

Regards
Chuck

On Mon, Jul 9, 2018 at 11:52 AM Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Bob,
>
> I haven’t tried this, but maybe this tip would do what you want?
>
> 
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
>
>
> > On Jul 9, 2018, at 9:20 AM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > anyone have a recommendation for
> > fast technique that they've used that supports this "alpha channel' so I
> > can convert my non-transparent images so that they are transparent
> again?
> > It looks so bad having an arrow on a form with a big white background.
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Cannon Smith via 4D_Tech
Hi Bob,

I haven’t tried this, but maybe this tip would do what you want?



--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Jul 9, 2018, at 9:20 AM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> anyone have a recommendation for 
> fast technique that they've used that supports this "alpha channel' so I 
> can convert my non-transparent images so that they are transparent again? 
> It looks so bad having an arrow on a form with a big white background.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**