I would like to print bigger QR-Codes to increase the scannable range. The magnification factor is already set to 10.
^XA
^FWN
^LH0,0
^FO50,40^A0R,75,75^FDTEST^FS
^FO150,45
^BQR,2,10,H,7^FDQA,TEST^FS
^PQ1
^XZ
ZPL result preview
Is there a way to scale the QR-Code, i would like to scale up the QR-Code by faktor 1.5
ZPL II Guide
You can use ^JMB to change the dots per millimeter. It will double the size, then you'll have to tweak it in ^BQ to get it where you want it. Also, I'm not sure ^BQR does anything, it looks like it only accepts ^BQN as a valid orientation.
Related
I am using Android S ATV platform having HDMI output.
As I hotplug HDMI to different TV's(HD, FHD, UHD), I see dynamic change in graphic FB size's based on HDMI output resolutions. But screen density always remains same. Due to this display output differs in size accross different resolutions.
With wm density command, density can be overridden. But that is not correct.
SurfaceFlinger always takes density value from prop lcd_density and if this value 0, then default is 213dpi.
SurfaceFlinger ignores DPI values reported by HWC.
Is dynamic density change is supported in AndroidTV S?
Note: Below values used for checking display size and density values.
wm size
wm density
I have a Brother QL820nwb I only need to to print via bluetooth using ESC/POS and my brain hurts trying to get it working. I have been able to get the printer to change orientation of the numbers. I tried to change to outline font so I can print at like 233 char size. Been hours without any luck, any help would be great.
I'm sending the following.
orientation
outline font ?
font size ?
text I need to printer very large.
\x1b\x69\x4C\x01
\x1B\x6B\x11
\x1B\x58\x01\x48\x01
892807
The numerical value of each parameter described in the specification is a decimal number, so you need to convert it to a hexadecimal number in the format you code.
2.outline font
\x1B\x6B\x11
If you specify Helsinki, this is the format.
\x1B\x6B\x0B
3.font size
\x1B\x58\x01\x48\x01
If you want to specify 233 times in the outline font, this is the format.
\x1B\x58\x00\xE9\x00
When I output the graph in R, the size (width and length) is always changing. So whenever I output graphs, I change the size by myself.
For example, I need a consistent graph size to insert into my document, but sometimes the default value of width and height is not the same when I try to export, particularly on different PC. How can I fix W:500. H:400 graph size all the time?
Many thanks!!
In order to get consistency, you should set the size of the graphics device yourself before plotting. For example, in Windows, you can use
windows(width=5.5, height=5, title="Controlled Size")
## NOW make your plot
to get a window that is always 5.5 inches wide by 5 inches high.
Other devices use minor variations for setting the size. You can check out other devices by looking at the help page help(Devices)
For example, bmp, jpeg, png and tiff allow you to set the number of pixels, not just the number of inches.
This is such a basic problem that's driving me crazy. When generating a figure in R it looks great on the screen. But when I try to generate it directly onto a file using png(), tiff(), etc. by setting the resolution to 300 and the width and height to reasonable values that would suit a journal paper well, there are 2 problems:
All lines are made super thick
All letters are in huge font.
This has been really annoying, I've tried playing with the pointsize option, it helps make the font size smaller, but the line widths are still thick and ugly. Can you please suggest what's going on wrong in R and how I can fix this? I've looked around and most solutions involve using other image processing software. I'd rather figure out why R does this when increasing the resolution and why it makes the figures so ugly. Here's an example:
png(file="test.png",width=5,height=5,units="cm",res=300)
plot(rnorm(1000),rnorm(1000),xlab="some text")
dev.off()
Thanks!
I think the issue is with the default point size (see parameter pointsize in ?png):
Here's what you had with the default of 12:
But if you lower it down to 6:
png(file="test.png",width=5,height=5,units="cm",res=300, pointsize=6)
plot(rnorm(1000),rnorm(1000),xlab="some text")
dev.off()
The way I understand it, a pointsize of 12 means that a text at cex=1 is 12/72th (i. e. 1/6th) of an inch. Your png being ca. 2 inches, your text is therefore 1/12th of the plot width with the default pointsize.
Is there a method for specifying the font size in when producing figures in R. This seems like a really basic requirement but I can't seem to find any references to somewhere that specifies the font size. I can save a figure to a pdf as follows:
setwd("C:\\")
pdf(file="Plot.pdf",family="Times")
plot(x,y);
dev.off()
Where R basically generates the figure in the pdf not in the figure window. When I look for ways of altering the font size all I see is people referring to cex=1.5 argument to scale fonts 150 percent, and cex.lab, cex.axis, etc ... Although not being an immediate issue now, I do wonder what will happen when I publish some results and the journal requires font size between 9 and 11. How do I control these in R? Any suggestions would be appreciated.
You control the font size with the ps (point size) parameter. The default is typically 12 (but can be controlled globally for a PDF file by the pointsize parameter) so if you want, let's say, fonts of the size 10 for a particular text you would use par(ps=10); text(...). Since you mentioned cex: note that cex is relative to the current pointsize and also applies to symbols whereas ps specifically applies to text. Obviously, the size will only match as long as you don't resize the resulting figure.