Home > Community > Forums > PCB SKILL > picture embedded in form code?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 picture embedded in form code? 

Last post Thu, Dec 2 2010 9:01 AM by rong96. 3 replies.
Started by Ejlersen 10 Nov 2010 09:56 AM. Topic has 3 replies and 1994 views
Page 1 of 1 (4 items)
Sort Posts:
  • Wed, Nov 10 2010 9:56 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 9,965
    picture embedded in form code? Reply

    Hi

    When doing a form it is possible to use THUMBNAIL to place .bmp pictures.

    I was however wondering if there is any way to translate picture file (bmp/jpg) into something that can be represented in a form as a axl drawn picture. I would prefer not being dependent on bmppath for users copying bmp pictures to the correct folder. Maybe skill can represent ps code directly or write the code to a file at run time.

    Any suggestions.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Wed, Nov 10 2010 10:22 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 295
    • Points 4,705
    Re: picture embedded in form code? Reply

    You look at the at the family of axlGrpDrw APIs.  There is no skill code that will translate an existing bmp to line draws there are commerical/shareware programs that will attempt to do it.You would have to take this type of output and convert it to axlGrpDrw APIs

    You can also pass a full path of a bmp file to axlGrpDrwBitmap to avoid BMPPATH issues.

     In <cdsroot>/share/pcb/examples/skill/basic/*  has a simple example.

    You can also try converting a bitmap file to encoded Ascii (look at uuencode/decode as an example). Embed the encoded Ascii in your skill file by assigning it to a variable. When the code is executed, it would save the encoded ascii to a temp file, decode it back to binary and load it via axlGrpDrwBitmap.

    • Post Points: 20
  • Thu, Dec 2 2010 8:48 AM

    • Romme
    • Top 200 Contributor
    • Joined on Thu, Jul 17 2008
    • Bagsvaerd, Copenhagen
    • Posts 38
    • Points 635
    Re: picture embedded in form code? Reply

    Could it (the basic folder) be named something else as i do not have it ?

     

    • Post Points: 20
  • Thu, Dec 2 2010 9:01 AM

    • rong96
    • Top 500 Contributor
    • Joined on Thu, Jan 22 2009
    • HOME, Ontario
    • Posts 19
    • Points 305
    Re: picture embedded in form code? Reply

     Look in <cdsroot>\share\pcb\examples\skill\form\basic

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by Ejlersen at 10 Nov 2010 09:56 AM. Topic has 3 replies.