last day (14 days later) » 

12:10 AM
1
A: How to reference the Paint.NET assemblies directly using C#

RadioSpaceJust add one or some or all of the libraries to your project. as Measuring states then use the object explorer. NOTE: never mind the .xaml stuff or the actual projects I am trying to render SharpDX D3D11 in a wpf app to make a map editor (and without the toolkit (don't ask me why. I am crazy))....

 
i already added the references.. tell me how to activate.. these functions of .net paint.. nobody is telling that :-(
after opening the paint i need to do these functions.. thats it.. //Open + O` //ctrl + Shift + L) then ` //(ctrl + Shift + G). then save //ctrl + Shift + S.. save as.. .pcx file type.. :-)
 
well I doubt you will find the proper documentation. but you can guess the rest of your life away. after you reference a library to your project place using somenamespace namespaces are listed under where you see PaintDotNet.Base. now try and instantiate whatever you can get your hands on. now realize that you are barking up the wrong tree. what you really want to do is emulate a keyboard that sends commands to whatever has focus. but maybe it would first check to see if paintdotnet has focus. if true. the keyboard emulator just sends the OS input. as Konrad said in your question comments 12
@StacyKebler sorry about the "12" I just wanted to max out the comment
 
can you help me automatically convert a .png file to .GRF file.. that's all i need.. can you help programatically.. please
 
do you have a link to the specification for a GRF file. frankly I have not heard of that. but PNG are easily loaded into memory Via a call to SharpDX.Direct3D11.Texture2D.FromFile.
@StacyKebler is this the GRF you are talking about? GRAPH
 
hehehe..... yes.. i will show you.. its like.. lets say.. i draw a line in a paint... then.. if i convert to grf it looks like.. imageshack.com/i/f0sKfg2Rp the black part looks with letter F rest every thing.. white will be zero
@RadioSpace u there
 
12:18 AM
@StacyKebler yep
@StacyKebler so its a zebra printer file. okay do they have an API or something to generate a .grf?
@StacyKebler have you seen this? [zebra question] (stackoverflow.com/questions/14054626/…)
 
12:42 AM
hi
yes i saw
but i am getting an error in image name
can you please help me i am not familiar with image converting i guess ur pro
no i use to generate it with ztools
 
what is the image name error?
 
hi
i dont know
since i don't have that imagename
see this.. and i don't know how can i call the CreateGRF function
@RadioSpace u there
u went
 
1:15 AM
how can i always save my out put as .grf.. i did that
please tell me this
i have string s = "~DG" + nomeImagem + ".GRF,0" + bitmapDataLength.ToString();
 
what is the string you pass into CreateGRF
 
this line and i need to save this file as .grf how can i do this
 
do you have the string that Create GRF returns?
I can tell you an easy way to save a string to a file
 
i did like this
see this
now i need to save this to file called .grf
i mean string s
is that correct right.. so my files string will always have DG,filename,234234,234343,00000,
am i correct
i need this
could you tell me how can i save this to .grf
just i want to save and try
 
hmm...
 
1:23 AM
i tried its not coming
ok thanks
let me try different way
:P
 
I think that maybe you are saving one string (the script) into many
 
i am getting as ~DGedit.bmp.GRF,08160
heehhe
 
are commands sent one line at a time?
 
i have no idea
if you have windows xp run this software
find Ztool and install it. and convert a file to .grf
you will know
remember the input file should be drawn with black.. no colour images
 

last day (14 days later) »