• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. picture embedded in form code?

Stats

  • Replies 3
  • Subscribers 161
  • Views 13759
  • Members are here 0
More Content

picture embedded in form code?

Ejlersen
Ejlersen over 14 years ago

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

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 14 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Romme
    Romme over 14 years ago

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

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rong96
    rong96 over 14 years ago

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information