Никак не пойму...
В сабже имеется вот такая функция:
<string>LoadLayer <string>filename <integer>index <boolean>fullframe
Loads the specified indexed layer from the the specified file. Returns the name of the layer. If fullframe is set to true, loads the layer at the resolution of the full image.
Таки что бы это могло означать? Если она "Returns the name of the layer", то как понимать "loads the layer" ? Куда она его, в таком случае, "loads", и как его оттуда получить? Если функция возвращает всего лишь "the name of the layer", то чем тогда она вообще отличается от:
<string>getLayerName <string>filename <integer>index
Returns the name of the indexed layer in the specified file.
???
На деле получается еще интереснее. Если выполнить
a=BitmapLayerManager.LoadLayer "c:\\somepicture.psd" 1 true
то переменная а получает значение
Bitmap: "c:\somepicture.psd"
то есть, тип ее все ж таки именно битмап, а вовсе не строка,
однако при попытке что-нибудь сделать с оным битмапом,
к примеру узнать его ширину,
возникает
** system exception **
Что бы это все могло означать?
Спасибо.
В сабже имеется вот такая функция:
<string>LoadLayer <string>filename <integer>index <boolean>fullframe
Loads the specified indexed layer from the the specified file. Returns the name of the layer. If fullframe is set to true, loads the layer at the resolution of the full image.
Таки что бы это могло означать? Если она "Returns the name of the layer", то как понимать "loads the layer" ? Куда она его, в таком случае, "loads", и как его оттуда получить? Если функция возвращает всего лишь "the name of the layer", то чем тогда она вообще отличается от:
<string>getLayerName <string>filename <integer>index
Returns the name of the indexed layer in the specified file.
???
На деле получается еще интереснее. Если выполнить
a=BitmapLayerManager.LoadLayer "c:\\somepicture.psd" 1 true
то переменная а получает значение
Bitmap: "c:\somepicture.psd"
то есть, тип ее все ж таки именно битмап, а вовсе не строка,
однако при попытке что-нибудь сделать с оным битмапом,
к примеру узнать его ширину,
возникает
** system exception **
Что бы это все могло означать?
Спасибо.