Is there a way to list all texts inside a .pspimage and print
Content, Font name, Font size, Font attributes
For example
Rome, Verdana, 16pt
Paris, Lato, 14px, italic
London, Arial, 12pt, bold
New York, Georgie, 10px, bold, italic
Thank you in advance.
Print all texts with attributes
Moderator: Kathy_9
-
dejudicibus
- Posts: 44
- Joined: Thu Mar 03, 2011 7:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- Contact:
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Print all texts with attributes
Yes. It involves a lot of calls to SelectLayer, layerinfo, and vector properties (not actual command names I need to look those up).
Essentially you find out how many layers between the top and bottom layer. This is your first loop, then select the very bottom layer, then you see if that layer has children, if it does, select the first child, if that child has children select its first child and so on. For each layer find out its type. If it's a vector see if it's an object or a layer. If it's an object gets its properties. Move onto next layer. Repeat until you get to the end.
Could probably be done easily with recursive functions, or just simple loops.
Essentially you find out how many layers between the top and bottom layer. This is your first loop, then select the very bottom layer, then you see if that layer has children, if it does, select the first child, if that child has children select its first child and so on. For each layer find out its type. If it's a vector see if it's an object or a layer. If it's an object gets its properties. Move onto next layer. Repeat until you get to the end.
Could probably be done easily with recursive functions, or just simple loops.
https://levifiction.wordpress.com/
