CATiledLayer: Rendering a Scalable PDF Page - What are LevelsOfDetail and LevelsOfDetailBias?

I did a small demo to view a scalable PDF page. Basically, I have a MonoTouched example at http://www.olivetoast.com/blog/2009/08/simple-uiscrollview-catiledlayer-pdf-example/ .

You can find my version on your blog at http://www.wildsau.net/post/2011/02/28/Simple-UIScrollView-CATiledLayer-PDF-Example-%28MonoTouch-version%29.aspx

However, I was not able to figure out what the " LevelsOfDetail" and " LevelsOfDetailBias" properties for CATiledLayer belong to. I can set any combination of values ​​and cannot determine the difference. Apple's help on properties doesn't explain anything to me.

Can someone explain?

+2
source share
2 answers

This link contains a pretty good explanation levelsOfDetail. Here you can find a worthy explanation levelsOfDetailBias.

+1
source

levelsOfDetailBias is the number of levels that will be increased or increased.

levelsOfDetail - the total number of levels, counting the enlarged image, normal size and scaling.

So, if you only want to increase, set them to the same value. If you want to reduce the size, set the OffDetailBias level to 0. If you want to both increase and decrease, set levelsOfDetailBias somewhere in the middle.

+5
source

Source: https://habr.com/ru/post/1795072/


All Articles