[MonoDevelop] PNG Images for creating own Monodevelop Stock Icons
yannick inizan
inizan.yannick at gmail.com
Wed Jul 1 03:42:41 UTC 2015
Why you don't use resources ?
add images to your project. for each image click "Properties", select
"EmbeddedResource" for build action and choose resource id.
and finally to load your image :
http://pastebin.com/wxcsrtS2 (replace "image.png" with resource id)
2015-07-01 2:19 GMT+02:00 TheWind777 <TheWind777 at hotmail.com>:
> I have monodevelop installed on a Raspberry PI Linux system... I have
> created a Solution in Gtk# with C# and wish to create my own graphics for
> the buttons. When I click on a button, pick 'Button Type', then 'Stock
> Button'... then, under 'Stock Item' I do the drop-down menu and pick
> 'More'... I go to 'Project Icons' click 'Add'... QUESTION NUMBER 1: If I
> select 'Multiple source icon' and pick two images... will that create an
> icon that, when you click on the button, it shows the second image?
> QUESTION NUMBER 2: When I put the PNG images in my Solution's root
> directory and pick them as the Select Image... an icon shows that has the
> proper graphics for the PNG; but when that same icon doesn't show on the
> button, itself. On the button it says the Icon name I gave to it; but has
> no graphics on the button at all. Does the imported PNG have to be a
> particular size or dpi? Currently my pngs are all created in Photoshop 133
> pixels wide x 113 pixels tall at 72 Pixels/Inch Do they have to be square,
> and some other pixel size, or a dpi other than 72 dpi in order to actually
> be placed on the button? Also... whenever I create a Stock Image, then try
> and Compile the Solution... it always gives me an error that it can't find
> the .png file. If I copy all of the PNG files to the Debug folder (or
> Release folder if I have 'Release' selected)... then it doesn't give me
> that error. Do I really have to manually copy all of the images to the
> Debug folder, myself? The error I always get is: Failed to open file
> '/home/pi/gtkwindowexample/gtkwindowexample/bin/Debug/./key0.png': No such
> file or directory My guess would be... that /./ is the problem. I don't
> know what the source is that /./ is defined as... but I'd guess it is
> backing-up a certain number of folders to two directories before the Debug
> folder. That is where the .png files are to be found. So, if /./ is
> anything other than "/../../" then that is probably where the error is
> coming from and why the png files aren't being copied to the Debug folder
> properly. Anybody know anything about why this is occurring?
> ------------------------------
> View this message in context: PNG Images for creating own Monodevelop
> Stock Icons
> <http://mono.1490590.n4.nabble.com/PNG-Images-for-creating-own-Monodevelop-Stock-Icons-tp4666263.html>
> Sent from the Mono - MonoDevelop IDE mailing list archive
> <http://mono.1490590.n4.nabble.com/Mono-MonoDevelop-IDE-f1507995.html> at
> Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20150701/cdfc9689/attachment.html>
More information about the Monodevelop-list
mailing list